CVE-2020-24240
publishedbison: use-after-free via crafted input file containing a NULL byte can lead to DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.13 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.14 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.15 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.16 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.17 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.18 | bison | Fixed | 3.7.2-r0 | Package fix record |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.20 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.21 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.22 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.23 | bison | Fixed | 3.7.2-r0 | Package fix record |
| Alpine Linux | v3.24 | bison | Fixed | 3.7.2-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
3Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ef58a7736348f310f20e70a12b69b4ab26ec3730df7e2e815c4ae7ad8a93ff07
- Ingested
- 23 Sep 2026, 07:49:35 UTC
- Source record
- Official CVE record