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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-09-23T06:58:21.546Z
- Modified: 2026-09-23T17:58:26.570Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## 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 `tarfile` filter functionality, which blocks the symlink escape

Users are recommended to upgrade to version 2.8.1, which fixes this issue.

(As written by CVE List.)

## Affected

- buildstream: up to 2.8.0 (not affected: 2.8.1)

## References

- <https://lists.apache.org/thread/9b342631x7bvtyg0pq7zgywtl2cmy34v> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/09/23/9>

## Sources

- CVE List: [CVE-2026-82331](https://www.cve.org/CVERecord?id=CVE-2026-82331), CVE Terms of Use, modified 2026-09-23
- NVD: [CVE-2026-82331](https://nvd.nist.gov/vuln/detail/CVE-2026-82331), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2026-82331 · Whole record: https://cve.day/CVE-2026-82331.json · Rebuilt by cve.day 2026-11-25T22:59:40.589Z
