CVE-2018-20840
Description
An unhandled exception vulnerability exists during Google Sign-In with Google API C++ Client before 2019-04-10. It potentially causes an outage of third-party services that were not designed to recover from exceptions. On the client, ID token handling can cause an unhandled exception because of misinterpretation of an integer as a string, resulting in denial-of-service and then other users can no longer login/sign-in to the affected third-party service. Once this third-party service uses Google Sign-In with google-api-cpp-client, a malicious user can trigger this client/auth/oauth2_authorization.cc vulnerability by requesting the client to receive the ID token from a Google authentication server.
Weakness
- CWE-754: Improper Check for Unusual or Exceptional Conditions
Timeline
- 2019-05-30Published by the CNA15:58 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| google api_c++_client | before 2019-04-10fixed in 2019-04-10 | 2019-04-10 |
References
- https://github.com/google/google-api-cpp-client/pull/58
- https://github.com/google/google-api-cpp-client/issues/57
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-20840'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-20840'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-20840'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-20840'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).