CVE-2026-82331 Apache BuildStream: tar source extraction escape
CriticalCVSS 9.8
EPSS 0.41%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- UbuntuDebian
Description
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
tarfilefilter functionality, which blocks the symlink escape
Users are recommended to upgrade to version 2.8.1, which fixes this issue.
Upgrade path
7 packages: 5 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/buildstream(Debian 12) | = 1.6.8-2; = 1.6.9-1; = 1.6.9-1.1; = 1.6.9-2 +7 more | No fix listed | No fix yet |
| ubuntu/buildstream(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/buildstream(Debian 13) | < 1.6.9-2+deb13u1; = 1.6.9-2 | 1.6.9-2+deb13u1 | Fixed |
| debian/buildstream(Debian 14) | < 2.8.1-1; = 1.6.9-2; = 1.6.9-3; = 2.7.0-1 +3 more | 2.8.1-1 | Fixed |
| pypi buildstream(PyPI) | <= 2.8.0 | after 2.8.0 | Fixed |
| ubuntu/buildstream(Ubuntu 22.04) | < 1.6.1-1ubuntu0.1~esm1 | 1.6.1-1ubuntu0.1~esm1 | Fixed |
| ubuntu/buildstream(Ubuntu 24.04) | < 1.6.9-1ubuntu0.1~esm1 | 1.6.9-1ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi buildstream(PyPI) | <= 2.8.0 | No fix listed |
| debian/buildstream(Debian:12) | All versions | No fix listed |
| debian/buildstream(Debian:12) | = 1.6.8-2 | No fix listed |
| debian/buildstream(Debian:12) | = 1.6.9-1 | No fix listed |
| debian/buildstream(Debian:12) | = 1.6.9-1.1 | No fix listed |
| debian/buildstream(Debian:12) | = 1.6.9-2 | No fix listed |
| debian/buildstream(Debian:12) | = 1.6.9-3 | No fix listed |
| debian/buildstream(Debian:12) | = 2.7.0-1 | No fix listed |
| debian/buildstream(Debian:12) | = 2.7.0-2 | No fix listed |
| debian/buildstream(Debian:12) | = 2.7.0-3 | No fix listed |
| debian/buildstream(Debian:12) | = 2.8.0-1 | No fix listed |
| debian/buildstream(Debian:12) | = 2.8.1-1 | No fix listed |
| debian/buildstream(Debian:13) | < 1.6.9-2+deb13u1 | 1.6.9-2+deb13u1 |
| debian/buildstream(Debian:13) | = 1.6.9-2 | No fix listed |
| debian/buildstream(Debian:14) | < 2.8.1-1 | 2.8.1-1 |
| debian/buildstream(Debian:14) | = 1.6.9-2 | No fix listed |
| debian/buildstream(Debian:14) | = 1.6.9-3 | No fix listed |
| debian/buildstream(Debian:14) | = 2.7.0-1 | No fix listed |
| debian/buildstream(Debian:14) | = 2.7.0-2 | No fix listed |
| debian/buildstream(Debian:14) | = 2.7.0-3 | No fix listed |
| debian/buildstream(Debian:14) | = 2.8.0-1 | No fix listed |
| ubuntu/buildstream(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/buildstream(Ubuntu:22.04) | < 1.6.1-1ubuntu0.1~esm1 | 1.6.1-1ubuntu0.1~esm1 |
| ubuntu/buildstream(Ubuntu:24.04) | < 1.6.9-1ubuntu0.1~esm1 | 1.6.9-1ubuntu0.1~esm1 |
References
- lists.apache.org vendor-advisory
- www.openwall.com
- Debian Security Tracker CVE-2026-82331 vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2539099 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-9095-1 vendor-advisory
- ENISA EUVD EUVD-2026-85113 third-party-advisory