CVE-2020-24240: gnu bison Use After Free
Vulnerability summary
CVE-2020-24240 is a high (CVSS 7.1) Use After Free vulnerability in gnu bison. EPSS estimates a 1.26% chance of exploitation in the next 30 days, higher than 69.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Duplicates 1Timeline
- 25-08-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.26%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
0.00 pp
From 1.26% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- bison< 3.7.2-r0
Debian1 product
- bison< 2:3.7.2+dfsg-1
Gnu1 product
- bison3.7
Ubuntu1 product
- bisonAll versions (No fix recorded)
4 vendors · 4 products
References
7 links- github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68dX Refsource MISCPatchThird Party Advisory