{"api_version":"1","generated_at":"2026-04-22T21:37:39+00:00","cve":"CVE-2020-24240","urls":{"html":"https://cve.report/CVE-2020-24240","api":"https://cve.report/api/cve/CVE-2020-24240.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-24240","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-24240"},"summary":{"title":"CVE-2020-24240","description":"GNU Bison before 3.7.1 has a use-after-free in _obstack_free in lib/obstack.c (called from gram_lex) when a '\\0' byte is encountered. NOTE: there is a risk only if Bison is used with untrusted input, and the observed bug happens to cause unsafe behavior with a specific compiler/architecture. The bug report was intended to show that a crash may occur in Bison itself, not that a crash may occur in code that is generated by Bison.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2020-08-25 14:15:00","updated_at":"2020-09-02 14:31:00"},"problem_types":["CWE-416"],"metrics":[],"references":[{"url":"https://github.com/akimd/bison/compare/v3.7...v3.7.1","name":"https://github.com/akimd/bison/compare/v3.7...v3.7.1","refsource":"MISC","tags":["Third Party Advisory"],"title":"Comparing v3.7...v3.7.1 · akimd/bison · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html","name":"https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html","refsource":"MISC","tags":["Mailing List","Vendor Advisory"],"title":"[bison 3.7] Bug Report","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d","name":"https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"scanner: don't crash on strings containing a NUL byte · akimd/bison@be95a4f · GitHub","mime":"application/octet-stream","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-24240","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24240","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"24240","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"bison","cpe6":"3.7","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"24240","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"bison","cpe6":"3.7","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-24240","qid":"501385","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503070","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503338","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503412","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503501","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503528","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503576","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503613","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503642","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"503661","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"505856","title":"Alpine Linux Security Update for bison"},{"cve":"CVE-2020-24240","qid":"672281","title":"EulerOS Security Update for bison (EulerOS-SA-2022-2674)"},{"cve":"CVE-2020-24240","qid":"672297","title":"EulerOS Security Update for bison (EulerOS-SA-2022-2642)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2020-24240","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":"GNU Bison before 3.7.1 has a use-after-free in _obstack_free in lib/obstack.c (called from gram_lex) when a '\\0' byte is encountered. NOTE: there is a risk only if Bison is used with untrusted input, and the observed bug happens to cause unsafe behavior with a specific compiler/architecture. The bug report was intended to show that a crash may occur in Bison itself, not that a crash may occur in code that is generated by Bison."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d","refsource":"MISC","name":"https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d"},{"url":"https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html","refsource":"MISC","name":"https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html"},{"refsource":"MISC","name":"https://github.com/akimd/bison/compare/v3.7...v3.7.1","url":"https://github.com/akimd/bison/compare/v3.7...v3.7.1"}]}},"nvd":{"publishedDate":"2020-08-25 14:15:00","lastModifiedDate":"2020-09-02 14:31:00","problem_types":["CWE-416"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:C","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"COMPLETE","baseScore":7.1},"severity":"HIGH","exploitabilityScore":8.6,"impactScore":6.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gnu:bison:3.7:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"24240","Ordinal":"185649","Title":"CVE-2020-24240","CVE":"CVE-2020-24240","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"24240","Ordinal":"1","NoteData":"GNU Bison before 3.7.1 has a use-after-free in _obstack_free in lib/obstack.c (called from gram_lex) when a '\\0' byte is encountered. NOTE: there is a risk only if Bison is used with untrusted input, and the observed bug happens to cause unsafe behavior with a specific compiler/architecture. The bug report was intended to show that a crash may occur in Bison itself, not that a crash may occur in code that is generated by Bison.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"24240","Ordinal":"2","NoteData":"2020-08-25","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"24240","Ordinal":"3","NoteData":"2020-08-30","Type":"Other","Title":"Modified"}]}}}