CVEfocus › CVE database › CVE-2020-24240

CVE-2020-24240

CVSS 5.5 MediumEPSS 1.3% (higher than 70% of CVEs)Published 2020-08-25Updated 2024-08-04Assigner: mitre

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

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
4Fix pending
4Will not fix
10Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04bisonNot affected
vulnerable_code_not_present
Ubuntu 25.10bisonNot affected
vulnerable_code_not_present
Ubuntu 24.04bisonNot affected
vulnerable_code_not_present
Ubuntu 22.04bisonNot affected
vulnerable_code_not_present
Ubuntu 20.04bisonFix pendingUBUNTU-CVE-2020-24240
Ubuntu 18.04bisonFix pendingUBUNTU-CVE-2020-24240
Ubuntu 16.04bisonFix pendingUBUNTU-CVE-2020-24240
Ubuntu 14.04bisonFix pending
Debian 14bisonFixed2:3.7.2+dfsg-1DEBIAN-CVE-2020-24240
Debian 13bisonFixed2:3.7.2+dfsg-1DEBIAN-CVE-2020-24240
Debian 12bisonFixed2:3.7.2+dfsg-1DEBIAN-CVE-2020-24240
Red Hat Enterprise Linux 8bisonNot affected
Red Hat Enterprise Linux 8bison-develNot affected
Red Hat Enterprise Linux 8bison-runtimeNot affected
Red Hat Enterprise Linux 7bisonNot affected
Red Hat Enterprise Linux 7bison-develNot affected
Red Hat Enterprise Linux 7bison-runtimeNot affected
Red Hat Enterprise Linux 6bisonWill not fix
Out of support scope
Red Hat Enterprise Linux 6bison-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6bison-runtimeWill not fix
Out of support scope
Red Hat Enterprise Linux 5bisonWill not fix
Out of support scope
Alpine Linux 3.24bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.23bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.22bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.21bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.20bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.19bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.18bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.17bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.16bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.15bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.14bisonFixed3.7.2-r0ALPINE-CVE-2020-24240
Alpine Linux 3.13bisonFixed3.7.2-r0ALPINE-CVE-2020-24240

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.