CVE-2020-24240Gnu Bison
Medium 5.5
Follow: this CVE · Gnu · Gnu Bison We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- Yes
- Published
- Aug 25, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Bison.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gnu | bison | 3.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.gnu.org Mailing List Vendor Advisory