cve.bz

CVE-2026-82331 apache software foundation apache buildstream: Link Following

9.8 criticalEPSS 0.4%

Critical (9.8) in apache software foundation apache buildstream. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-09-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-82331 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-82331?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-82331?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-82331 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache BuildStreamthrough 2.8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12buildstreamno fix listedDEBIAN-CVE-2026-82331
Debian13buildstream1.6.9-2+deb13u1DEBIAN-CVE-2026-82331 DSA-6559-1
Debian14buildstream2.8.1-1DEBIAN-CVE-2026-82331
UbuntuPro:20.04:LTSbuildstream1.4.1-1ubuntu0.1~esm1UBUNTU-CVE-2026-82331 USN-9095-1
UbuntuPro:22.04:LTSbuildstream1.6.1-1ubuntu0.1~esm1UBUNTU-CVE-2026-82331 USN-9095-1
UbuntuPro:24.04:LTSbuildstream1.6.9-1ubuntu0.1~esm1UBUNTU-CVE-2026-82331 USN-9095-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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. Apache BuildStream is not included or supported in Red Hat Enterprise Linux, limiting exposure to community distributions. Additionally, environments executing on Python 3.12 or newer inherently prevent this directory traversal through native archive extraction filters.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-82331.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON