{"api_version":"1","generated_at":"2026-07-23T09:58:33+00:00","cve":"CVE-2018-20840","urls":{"html":"https://cve.report/CVE-2018-20840","api":"https://cve.report/api/cve/CVE-2018-20840.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-20840","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20840"},"summary":{"title":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-05-30 16:29:00","updated_at":"2019-05-31 16:04:00"},"problem_types":["CWE-754"],"metrics":[],"references":[{"url":"https://github.com/google/google-api-cpp-client/pull/58","name":"https://github.com/google/google-api-cpp-client/pull/58","refsource":"MISC","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"Fixed 'exp' handling in ID token by sungjungk · Pull Request #58 · google/google-api-cpp-client · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/google/google-api-cpp-client/issues/57","name":"https://github.com/google/google-api-cpp-client/issues/57","refsource":"MISC","tags":["Exploit","Issue Tracking","Third Party Advisory"],"title":"Error on 'exp' type handling in ID Token  · Issue #57 · google/google-api-cpp-client · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20840","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20840","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"20840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"google","cpe5":"api_c++_client","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"20840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"google","cpe5":"api_c\\+\\+_client","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"20840","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"google","cpe5":"api_c\\+\\+_client","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-20840","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/google/google-api-cpp-client/pull/58","refsource":"MISC","name":"https://github.com/google/google-api-cpp-client/pull/58"},{"url":"https://github.com/google/google-api-cpp-client/issues/57","refsource":"MISC","name":"https://github.com/google/google-api-cpp-client/issues/57"}]}},"nvd":{"publishedDate":"2019-05-30 16:29:00","lastModifiedDate":"2019-05-31 16:04:00","problem_types":["CWE-754"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":8.6,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:google:api_c\\+\\+_client:*:*:*:*:*:*:*:*","versionEndExcluding":"2019-04-10","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"20840","Ordinal":"150812","Title":"CVE-2018-20840","CVE":"CVE-2018-20840","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"20840","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"20840","Ordinal":"2","NoteData":"2019-05-30","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"20840","Ordinal":"3","NoteData":"2019-05-30","Type":"Other","Title":"Modified"}]}}}