CVE-2020-24240

bison: use-after-free via crafted input file containing a NULL byte can lead to DoS

Published Aug 25, 2020 CVSS 3.1 · 5.5 Medium EPSS 1.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-16975 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.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 3:12 PM
Reserved
Aug 13, 2020, 12:00 AM
Status
Modified
Published
Aug 25, 2020, 2:15 PM
Modified
Jun 17, 2026, 3:05 AM
Severity
Moderate
Public date
Jul 28, 2020, 12:00 AM