CVE-2020-24240
MEDIUMGNU Bison < 3.7.1 - Use-After-Free in obstack.c via Null Byte Handling
Title source: llmDescription
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.
References (3)
Core 3
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d
Mailing List, Vendor Advisory x_refsource_misc
https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html
Third Party Advisory x_refsource_misc
https://github.com/akimd/bison/compare/v3.7...v3.7.1
Scores
CVSS v3
5.5
EPSS
0.0040
EPSS Percentile
61.0%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Details
CWE
CWE-416
Status
published
Products (1)
gnu/bison
3.7
Published
Aug 25, 2020
Tracked Since
Feb 18, 2026