Skip to content
Heist/ feed
Back to feed
CriticalFix available

buildstream — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-82331

Improper link resolution before file access ('link following') vulnerability in the `tar` source plugin of Apache BuildStream running on Python < 3.12 allows malicious source tarballs to write files on the host, with the privileges of the user running BuildStream, via symlinks as part of source fetching. The impact of this issue is mitigated by: * BuildStream projects should only use trusted sources in their elements as otherwise the build output can also not be trusted * Tracking a source tarball pins its SHA256 hash, which prevents MITM attacks of users that are fetching an already tracked project * When running on Python >= 3.12, BuildStream >= 2.3.0 already makes use of the Python `tarfile` filter functionality, which blocks the symlink escape Users are recommended to upgrade to version 2.8.1, which fixes this issue.

Products
buildstream
Affected versions
1.6.8-2, 1.6.9-1, 1.6.9-1.1, 1.6.9-2, 1.6.9-3, 2.7.0-1, 2.7.0-2, 2.7.0-3, 2.8.0-1, 2.8.1-1
Fixed versions
1.6.9-2+deb13u1, 2.8.1-1
CVEs
CVE-2026-82331
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 12:15 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-82331

core-osv · Original source

Published 23 Sept 2026, 07:16 UTC

Improper link resolution before file access ('link following') vulnerability in the `tar` source plugin of Apache BuildStream running on Python < 3.12 allows malicious source tarballs to write files on the host, with the privileges of the user running BuildStream, via symlinks as part of source fetching. The impact of this issue is mitigated by: * BuildStream projects should only use trusted sources in their elements as otherwise the build output can also not be trusted * Tracking a source tarball pins its SHA256 hash, which prevents MITM attacks of users that are fetching an already tracked project * When running on Python >= 3.12, BuildStream >= 2.3.0 already makes use of the Python `tarfile` filter functionality, which blocks the symlink escape Users are recommended to upgrade to version 2.8.1, which fixes this issue.

osv:DEBIAN-CVE-2026-82331

buildstream

Fixed versions: Not specified

buildstream

Fixed versions: 1.6.9-2+deb13u1

buildstream

Fixed versions: 2.8.1-1

Complete source record
{
  "id": "603ab1d565d3592493ca1f8216a8781901c2f06ba7f1b1160326dd4e1e5a0c40",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-82331",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-82331",
    "summary": "Improper link resolution before file access ('link following') vulnerability in the `tar` source plugin of Apache BuildStream running on Python < 3.12 allows malicious source tarballs to write files on the host, with the privileges of the user running BuildStream, via symlinks as part of source fetching. The impact of this issue is mitigated by: * BuildStream projects should only use trusted sources in their elements as otherwise the build output can also not be trusted * Tracking a source tarball pins its SHA256 hash, which prevents MITM attacks of users that are fetching an already tracked project * When running on Python >= 3.12, BuildStream >= 2.3.0 already makes use of the Python `tarfile` filter functionality, which blocks the symlink escape Users are recommended to upgrade to version 2.8.1, which fixes this issue.",
    "evidence": "osv:DEBIAN-CVE-2026-82331",
    "products": [
      {
        "name": {
          "value": "buildstream",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.8-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.9-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.9-1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.9-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.9-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.8.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.8.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "buildstream",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.9-2+deb13u1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.6.9-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "buildstream",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.8.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.6.9-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.6.9-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.7.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.7.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.7.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.8.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2026-82331",
      "aliases": [
        "DEBIAN-CVE-2026-82331"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "buildstream",
            "purl": "pkg:deb/debian/buildstream?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.6.8-2",
            "1.6.9-1",
            "1.6.9-1.1",
            "1.6.9-2",
            "1.6.9-3",
            "2.7.0-1",
            "2.7.0-2",
            "2.7.0-3",
            "2.8.0-1",
            "2.8.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82331.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.9-2+deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "buildstream",
            "purl": "pkg:deb/debian/buildstream?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "1.6.9-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82331.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.8.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "buildstream",
            "purl": "pkg:deb/debian/buildstream?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "1.6.9-2",
            "1.6.9-3",
            "2.7.0-1",
            "2.7.0-2",
            "2.7.0-3",
            "2.8.0-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82331.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-14T16:00:12.727021946Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-82331"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-82331"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-82331",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 316441,
  "published_at": "2026-09-23T07:16:46.493+00:00"
}