Security mailing lists by PureSourceCode

CVE-2020-24240

MEDIUM 5.5CVSS 3.1

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.

Published
25 Aug 2020
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-416
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.1 AV:N/AC:M/Au:N/C:N/I:N/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gnu bison
cpe:2.3:a:gnu:bison:3.7:*:*:*:*:*:*:*
= 3.7

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 25 Aug 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.