CVE-2026-82331Apache BuildStream: tar source extraction escape
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | buildstream | Fix pending | 1.6.9-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-82331 |
| Ubuntu 22.04 | buildstream | Fix pending | 1.6.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-82331 |
| Ubuntu 20.04 | buildstream | Fix pending | 1.4.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-82331 |
| Debian 14 | buildstream | Fixed | 2.8.1-1 | DEBIAN-CVE-2026-82331 |
| Debian 13 | buildstream | Fixed | 1.6.9-2+deb13u1 | DEBIAN-CVE-2026-82331 |
| Debian 12 | buildstream | Fix pending | DEBIAN-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.
- Apache Software Foundation Apache BuildStream: affected: up to 2.8.0, 2.8.1 not affected
Vendor advisories:
- https://lists.apache.org/thread/9b342631x7bvtyg0pq7zgywtl2cmy34v (vendor-advisory)
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.