{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-24240.json"
      }
    ],
    "title": "bison: use-after-free via crafted input file containing a NULL byte can lead to DoS",
    "tracking": {
      "current_release_date": "2026-11-23T17:32:41+00:00",
      "generator": {
        "date": "2026-11-23T17:32:41+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.8"
        }
      },
      "id": "CVE-2020-24240",
      "initial_release_date": "2020-07-28T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2020-07-28T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2021-02-16T19:25:29+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-11-23T17:32:41+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 5",
                "product": {
                  "name": "Red Hat Enterprise Linux 5",
                  "product_id": "red_hat_enterprise_linux_5",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:5"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 5"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 6",
                "product": {
                  "name": "Red Hat Enterprise Linux 6",
                  "product_id": "red_hat_enterprise_linux_6",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:6"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 6"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 7",
                "product": {
                  "name": "Red Hat Enterprise Linux 7",
                  "product_id": "red_hat_enterprise_linux_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "category": "product_version",
            "name": "bison.src",
            "product": {
              "name": "bison.src",
              "product_id": "bison.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/bison?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "bison-runtime",
            "product": {
              "name": "bison-runtime",
              "product_id": "bison-runtime",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/bison-runtime"
              }
            }
          },
          {
            "category": "product_version",
            "name": "bison-devel",
            "product": {
              "name": "bison-devel",
              "product_id": "bison-devel",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/bison-devel"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison.src as a component of Red Hat Enterprise Linux 5",
          "product_id": "red_hat_enterprise_linux_5:bison.src"
        },
        "product_reference": "bison.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_5"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison-devel as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:bison-devel"
        },
        "product_reference": "bison-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison-runtime as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:bison-runtime"
        },
        "product_reference": "bison-runtime",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison.src as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:bison.src"
        },
        "product_reference": "bison.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison-devel as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:bison-devel"
        },
        "product_reference": "bison-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison-runtime as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:bison-runtime"
        },
        "product_reference": "bison-runtime",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison.src as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:bison.src"
        },
        "product_reference": "bison.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison-devel as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:bison-devel"
        },
        "product_reference": "bison-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison-runtime as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:bison-runtime"
        },
        "product_reference": "bison-runtime",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bison.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:bison.src"
        },
        "product_reference": "bison.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2020-24240",
      "cwe": {
        "id": "CWE-416",
        "name": "Use After Free"
      },
      "discovery_date": "2020-08-25T00:00:00+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_enterprise_linux_7:bison-devel",
            "red_hat_enterprise_linux_7:bison-runtime",
            "red_hat_enterprise_linux_7:bison.src",
            "red_hat_enterprise_linux_8:bison-devel",
            "red_hat_enterprise_linux_8:bison-runtime",
            "red_hat_enterprise_linux_8:bison.src"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1872737"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "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.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "bison: use-after-free via crafted input file containing a NULL byte can lead to DoS",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "bison as shipped in Red Hat Enterprise Linux 7 and 8 does not reproduce this flaw. It properly detects the NULL byte and errors out accordingly instead of causing use-after-free. This is likely due to introduction of vulnerable code in a more recent version of bison.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_affected": [
          "red_hat_enterprise_linux_5:bison.src",
          "red_hat_enterprise_linux_6:bison-devel",
          "red_hat_enterprise_linux_6:bison-runtime",
          "red_hat_enterprise_linux_6:bison.src"
        ],
        "known_not_affected": [
          "red_hat_enterprise_linux_7:bison-devel",
          "red_hat_enterprise_linux_7:bison-runtime",
          "red_hat_enterprise_linux_7:bison.src",
          "red_hat_enterprise_linux_8:bison-devel",
          "red_hat_enterprise_linux_8:bison-runtime",
          "red_hat_enterprise_linux_8:bison.src"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2020-24240"
        },
        {
          "category": "external",
          "summary": "RHBZ#1872737",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1872737"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2020-24240",
          "url": "https://www.cve.org/CVERecord?id=CVE-2020-24240"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2020-24240",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-24240"
        }
      ],
      "release_date": "2020-07-28T00:00:00+00:00",
      "remediations": [
        {
          "category": "no_fix_planned",
          "details": "Out of support scope",
          "product_ids": [
            "red_hat_enterprise_linux_5:bison.src",
            "red_hat_enterprise_linux_6:bison-devel",
            "red_hat_enterprise_linux_6:bison-runtime",
            "red_hat_enterprise_linux_6:bison.src"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 5.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "red_hat_enterprise_linux_5:bison.src",
            "red_hat_enterprise_linux_6:bison-devel",
            "red_hat_enterprise_linux_6:bison-runtime",
            "red_hat_enterprise_linux_6:bison.src",
            "red_hat_enterprise_linux_7:bison-devel",
            "red_hat_enterprise_linux_7:bison-runtime",
            "red_hat_enterprise_linux_7:bison.src",
            "red_hat_enterprise_linux_8:bison-devel",
            "red_hat_enterprise_linux_8:bison-runtime",
            "red_hat_enterprise_linux_8:bison.src"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_enterprise_linux_5:bison.src",
            "red_hat_enterprise_linux_6:bison-devel",
            "red_hat_enterprise_linux_6:bison-runtime",
            "red_hat_enterprise_linux_6:bison.src",
            "red_hat_enterprise_linux_7:bison-devel",
            "red_hat_enterprise_linux_7:bison-runtime",
            "red_hat_enterprise_linux_7:bison.src",
            "red_hat_enterprise_linux_8:bison-devel",
            "red_hat_enterprise_linux_8:bison-runtime",
            "red_hat_enterprise_linux_8:bison.src"
          ]
        }
      ],
      "title": "bison: use-after-free via crafted input file containing a NULL byte can lead to DoS"
    }
  ]
}