Skip to content
Heist/ feed
Back to feed
Medium

bison — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-56390

GNU Bison improperly handles grammar‑defined output paths. Grammar directives such as %output and %header allow specifying file paths, which are accepted without restriction and override caller‑supplied output options. When processing attacker-supplied grammar, this behavior allows directing generated files to arbitrary writable locations on the filesystem, potentially overwriting existing files accessible to the Bison process. Maintainers of this project were notified about this vulnerability, and fixed the issue in commit 8d101c19d4d9aaedf83a448c925513742d4efcf0. However, they did not provide vulnerable version range. Version 3.8.2 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.

Products
bison
Affected versions
2:3.0.2.dfsg-2, 2:3.0.4.dfsg-1, 2:3.0.4.dfsg-1build1, 2:3.4.1+dfsg-4, 2:3.4.2+dfsg-1, 2:3.5.1+dfsg-1, 2:3.7.6+dfsg-1build1, 2:3.8.2+dfsg-1, 2:3.8.2+dfsg-1build1, 2:3.8.2+dfsg-1build2, 2:3.8.2+dfsg-1build3, 2:3.8.2+dfsg-1build4, 2:3.8.2+dfsg-1ubuntu0.22.04.1, 2:3.8.2+dfsg-1ubuntu0.24.04.1, 2:3.8.2+dfsg-1ubuntu0.26.04.1, 2:3.8.2+dfsg-1ubuntu1
Fixed versions
Not specified
CVEs
CVE-2026-56390
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 19:42 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-56390

core-osv · Original source

Published 29 Jul 2026, 11:16 UTC

GNU Bison improperly handles grammar‑defined output paths. Grammar directives such as %output and %header allow specifying file paths, which are accepted without restriction and override caller‑supplied output options. When processing attacker-supplied grammar, this behavior allows directing generated files to arbitrary writable locations on the filesystem, potentially overwriting existing files accessible to the Bison process. Maintainers of this project were notified about this vulnerability, and fixed the issue in commit 8d101c19d4d9aaedf83a448c925513742d4efcf0. However, they did not provide vulnerable version range. Version 3.8.2 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.

osv:UBUNTU-CVE-2026-56390

bison

Fixed versions: Not specified

bison

Fixed versions: Not specified

bison

Fixed versions: Not specified

bison

Fixed versions: Not specified

bison

Fixed versions: Not specified

bison

Fixed versions: Not specified

bison

Fixed versions: Not specified

Complete source record
{
  "id": "62657df1c266b3b52eb0e000ee16a06079776dacd8d250717a0c79435840ac63",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-56390",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-56390",
    "summary": "GNU Bison improperly handles grammar‑defined output paths. Grammar directives such as %output and %header allow specifying file paths, which are accepted without restriction and override caller‑supplied output options. When processing attacker-supplied grammar, this behavior allows directing generated files to arbitrary writable locations on the filesystem, potentially overwriting existing files accessible to the Bison process. Maintainers of this project were notified about this vulnerability, and fixed the issue in commit 8d101c19d4d9aaedf83a448c925513742d4efcf0. However, they did not provide vulnerable version range. Version 3.8.2 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.",
    "evidence": "osv:UBUNTU-CVE-2026-56390",
    "products": [
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.0.2.dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:3.0.4.dfsg-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.0.4.dfsg-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.4.1+dfsg-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2:3.4.2+dfsg-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2:3.5.1+dfsg-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.7.6+dfsg-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1ubuntu0.22.04.1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.8.2+dfsg-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1build2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1ubuntu0.24.04.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.8.2+dfsg-1build4",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1ubuntu1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "bison",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:3.8.2+dfsg-1build3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1build4",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2:3.8.2+dfsg-1ubuntu0.26.04.1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-56390",
      "aliases": [
        "UBUNTU-CVE-2026-56390"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2:3.0.2.dfsg-2",
            "2:3.0.4.dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.0.4.dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2:3.0.4.dfsg-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.0.4.dfsg-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2:3.4.1+dfsg-4",
            "2:3.4.2+dfsg-1",
            "2:3.5.1+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.5.1+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2:3.7.6+dfsg-1build1",
            "2:3.8.2+dfsg-1",
            "2:3.8.2+dfsg-1build1",
            "2:3.8.2+dfsg-1ubuntu0.22.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.8.2+dfsg-1ubuntu0.22.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2:3.8.2+dfsg-1build1",
            "2:3.8.2+dfsg-1build2",
            "2:3.8.2+dfsg-1ubuntu0.24.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.8.2+dfsg-1ubuntu0.24.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2:3.8.2+dfsg-1build4",
            "2:3.8.2+dfsg-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.8.2+dfsg-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "bison",
            "purl": "pkg:deb/ubuntu/bison?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2:3.8.2+dfsg-1build3",
            "2:3.8.2+dfsg-1build4",
            "2:3.8.2+dfsg-1ubuntu0.26.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-56390.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "bison",
                "binary_version": "2:3.8.2+dfsg-1ubuntu0.26.04.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-22T23:20:27.737593295Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-56390"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-56390",
        "https://www.cve.org/CVERecord?id=CVE-2026-56390",
        "https://cert.pl/en/posts/2026/07/CVE-2026-56389/"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-56390",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 410128,
  "published_at": "2026-07-29T11:16:00+00:00"
}