CVEfocus › CVE database › CVE-2026-82331

CVE-2026-82331Apache BuildStream: tar source extraction escape

CVSS 9.8 CriticalEPSS 0.6% (higher than 44% of CVEs)Published 2026-09-23Updated 2026-09-23Assigner: apache

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.

CWE-59

What to do

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

Debian, Ubuntu have 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

2Fixed
4Fix pending

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 24.04buildstreamFix pending1.6.9-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-82331
Ubuntu 22.04buildstreamFix pending1.6.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-82331
Ubuntu 20.04buildstreamFix pending1.4.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-82331
Debian 14buildstreamFixed2.8.1-1DEBIAN-CVE-2026-82331
Debian 13buildstreamFixed1.6.9-2+deb13u1DEBIAN-CVE-2026-82331
Debian 12buildstreamFix pendingDEBIAN-CVE-2026-82331

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

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.