CVE-2020-24240
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in, but needs a user to act. High risk of service disruption.
- Exploit odds
- 1.3% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.3% in the next 30 days (EPSS).
- Severity: 5.5 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.3% · EPSS, next 30 days
- Weakness
- CWE-416 · Use after free
- Record status
- Modified
Affected
- Gnu Bison 3.7
Attack profile CVSS 3.1 · 5.5
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Raw vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2020-24240.md and follow it. Check whether this project is affected by CVE-2020-24240. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d
- https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html
- https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d
- https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html
References
- https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d
- https://github.com/akimd/bison/compare/v3.7...v3.7.1
- https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html
- https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d
- https://github.com/akimd/bison/compare/v3.7...v3.7.1
- https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html