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.
Published: 2026-09-23
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Immediate Patch
AI Analysis

Impact

A flaw in the tar source plugin of Apache BuildStream when executed with Python versions older than 3.12 allows an attacker who can supply a malformed tar archive to cause the program to follow symlink paths located outside the intended extraction directory. The plugin then writes data to those paths using the privileges of the user running BuildStream, which can overwrite build artifacts or inject malicious files. This vulnerability is classified as CWE-59 and can compromise the integrity of the build output.

Affected Systems

The issue exists in Apache BuildStream prior to 2.8.1 when running on Python 3.11 or lower. BuildStream versions 2.3.0 and later on Python 3.12 or newer provide native protection via the tarfile filter functionality. The affected product is Apache Software Foundation: Apache BuildStream; the fix is delivered in BuildStream 2.8.1 and higher.

Risk and Exploitability

The CVSS score of 9.8 indicates very high severity, and the vulnerability enables arbitrary file writes. Exploitation requires that an attacker can supply a source tarball to BuildStream, which is likely in continuous integration or deployment pipelines that use untrusted source inputs. The EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog. Attackers would target BuildStream runs that process unverified tar archives, potentially modifying artifacts or inserting malicious content.

Generated by OpenCVE AI on September 23, 2026 at 16:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache BuildStream to version 2.8.1 or later, which removes the unfiltered symlink handling in the tar source plugin.
  • Configure BuildStream to run only with Python 3.12 or newer, which applies the tarfile filter to block symlink escapes automatically.
  • Ensure that all source tarballs used in BuildStream builds are sourced from trusted repositories and have verified SHA‑256 hashes; avoid using arbitrary external archives in automated build pipelines.

Generated by OpenCVE AI on September 23, 2026 at 16:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 24 Sep 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache buildstream
Vendors & Products Apache
Apache buildstream

Wed, 23 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
References

Wed, 23 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 23 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Wed, 23 Sep 2026 11:45:00 +0000

Type Values Removed Values Added
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.
Title Apache BuildStream: tar source extraction escape
Weaknesses CWE-59
References

Subscriptions

Apache Buildstream
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-09-23T16:08:58.171Z

Reserved: 2026-08-28T14:59:00.996Z

Link: CVE-2026-82331

cve-icon Vulnrichment

Updated: 2026-09-23T16:08:58.171Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-23T07:16:46.493

Modified: 2026-09-23T17:58:26.570

Link: CVE-2026-82331

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-23T06:58:21Z

Links: CVE-2026-82331 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-24T09:14:48Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')