OESA-2022-1767 (CVE-2020-24240)
Vulnerability from osv_openeuler – Published: 2022-07-22 11:05 – Updated: 2026-08-06 11:05 – Source websiteBison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables. As an experimental feature, Bison can also generate IELR(1) or canonical LR(1) parser tables. Once you are proficient with Bison, you can use it to develop a wide range of language parsers, from those used in simple desk calculators to complex programming languages.
Security Fix(es):
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.(CVE-2020-24240)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"bison-debuginfo-3.6.4-2.oe1.aarch64.rpm",
"bison-debugsource-3.6.4-2.oe1.aarch64.rpm",
"bison-lang-3.6.4-2.oe1.aarch64.rpm",
"bison-devel-3.6.4-2.oe1.aarch64.rpm",
"bison-3.6.4-2.oe1.aarch64.rpm"
],
"noarch": [
"bison-help-3.6.4-2.oe1.noarch.rpm"
],
"src": [
"bison-3.6.4-2.oe1.src.rpm"
],
"x86_64": [
"bison-3.6.4-2.oe1.x86_64.rpm",
"bison-devel-3.6.4-2.oe1.x86_64.rpm",
"bison-lang-3.6.4-2.oe1.x86_64.rpm",
"bison-debugsource-3.6.4-2.oe1.x86_64.rpm",
"bison-debuginfo-3.6.4-2.oe1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP1",
"name": "bison",
"purl": "pkg:rpm/openEuler/bison\u0026distro=openEuler-20.03-LTS-SP1"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.6.4-2.oe1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"bison-debuginfo-3.6.4-3.oe1.aarch64.rpm",
"bison-3.6.4-3.oe1.aarch64.rpm",
"bison-debugsource-3.6.4-3.oe1.aarch64.rpm",
"bison-devel-3.6.4-3.oe1.aarch64.rpm",
"bison-lang-3.6.4-3.oe1.aarch64.rpm"
],
"noarch": [
"bison-help-3.6.4-3.oe1.noarch.rpm"
],
"src": [
"bison-3.6.4-3.oe1.src.rpm"
],
"x86_64": [
"bison-debuginfo-3.6.4-3.oe1.x86_64.rpm",
"bison-devel-3.6.4-3.oe1.x86_64.rpm",
"bison-3.6.4-3.oe1.x86_64.rpm",
"bison-lang-3.6.4-3.oe1.x86_64.rpm",
"bison-debugsource-3.6.4-3.oe1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP3",
"name": "bison",
"purl": "pkg:rpm/openEuler/bison\u0026distro=openEuler-20.03-LTS-SP3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.6.4-3.oe1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "Medium"
},
"details": "Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables. As an experimental feature, Bison can also generate IELR(1) or canonical LR(1) parser tables. Once you are proficient with Bison, you can use it to develop a wide range of language parsers, from those used in simple desk calculators to complex programming languages.\r\n\r\nSecurity Fix(es):\r\n\r\nGNU Bison before 3.7.1 has a use-after-free in _obstack_free in lib/obstack.c (called from gram_lex) when a \u0026apos;\\0\u0026apos; 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.(CVE-2020-24240)",
"id": "OESA-2022-1767",
"modified": "2026-08-06T11:05:02Z",
"published": "2022-07-22T11:05:02Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1767"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-24240"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "bison security update",
"upstream": [
"CVE-2020-24240"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.