CVE-2026-82331: Apache BuildStream: tar source extraction escape
CVE-2026-82331 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS base score
- 9.8 (Apache), 6.6 (Red Hat)
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H· base score 9.8, scored by CISA-ADPAttack vector: network. Attack complexity: low. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-59 Improper link resolution before file access ('link following')
- EPSS
- 0.41% chance of exploitation in the next 30 days (35th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: yes. Technical impact: total. CISA, .
- Fixed releases
- Apache: 2.8.1
- Assigned by
- apache (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-82331; each belongs to its advisory, not to every product listed. How records are collected and checked.
Am I affected by CVE-2026-82331?
You are affected if you run Apache BuildStream at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Apache: Apache BuildStream through 2.8.0 | 2.8.1 |
| Red Hat: < 3.12 | No fixed release on this branch listed by the vendor |
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.
Text from the CVE.org record (apache).
How do I fix CVE-2026-82331?
Upgrade to a fixed release named by the vendor:
- Apache: 2.8.1
- 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. (Apache)
- Upstream fix: 3.12, 2.3.0, 2.8.1 (released upstream; not a Red Hat package). (Red Hat)
Vendor advisories for CVE-2026-82331
Apache
1 advisory- Advisory severityCritical9.8
Critical [CVE-2026-82331] Apache BuildStream: tar source extraction escape
CVE-2026-82331Source published Source updated
Improper link resolution before file access ('link following') vulnerability in the `tar` source plugin of Apache BuildStream 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.
- Affected products in this advisory
- Apache BuildStream
- Source-reported affected versions
- Apache BuildStream through 2.8.0
- Source-reported fixed versions
- 2.8.1
- Mitigation guidance
- 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.
Red Hat
1 advisory- Advisory severityMedium6.6
Medium [CVE-2026-82331] Arbitrary file write via symlinks in tar source plugin
CVE-2026-82331Source published Source updated
Improper link resolution before file access ('link following') vulnerability in the `tar` source plugin of Apache BuildStream 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. By crafting malicious source tarballs containing symlinks, an attacker can exploit this flaw during source fetching to execute code or escalate privileges with the permissions of the user running BuildStream. This vulnerability is assessed as Moderate severity because exploitation requires a user to explicitly fetch an untrusted archive, and any resultant file modification remains strictly confined to the access permissions of the invoking account.…
- Affected products in this advisory
- No product details extracted. Check the source bulletin.
- Source-reported affected versions
- < 3.12
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- Upstream fix: 3.12, 2.3.0, 2.8.1 (released upstream; not a Red Hat package).
References
- CVE-2026-82331 recordCVE.org
- CVE-2026-82331 detailNVD
- lists.apache.org/thread/9b342631x7bvtyg0pq7zgywtl2cmy34vvendor-advisory
Timeline
- CVE record published
- First vendor advisory listed by VulniPulse
- CVE record last updated
More Apache advisories
CVE-2026-111600Nov 24, 2026UNIX symbolic link (symlink) following vulnerability in Apache BuildStreamCVE-2026-104813Nov 24, 2026Apache BuildStream path traversalCVE-2026-124324Nov 24, 2026vulnerability in Apache Jena FusekiCVE-2026-120502Nov 24, 2026vulnerability in Apache Jena can cause excess memory allocation from malicious Thrift dataCVE-2026-86156Nov 24, 2026Apache Jena Fuseki: Web requests using SPARQL Update can escape file restrictionsCVE-2026-86155Nov 24, 2026Apache Jena Fuseki SSRF
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro.