Apache BuildStream 2.8.2 Patch Fixes Path Traversal Flaw in Artifact Checkout

Apache BuildStream versions up to 2.8.1 contain a path traversal vulnerability (CVE-2026-104813) that allows malicious or compromised remote servers to write files on the host system. The flaw occurs during the 'bst artifact checkout' process when the software fails to properly validate directory paths. Users are advised to upgrade to version 2.8.2, which resolves the issue. The vulnerability is mitigated by the recommendation to only use trusted servers for remote cache and execution, as untrusted build outputs cannot be relied upon.
Key points
- The vulnerability affects Apache BuildStream versions through 2.8.1.
- It is classified as CWE-22, involving improper limitation of a pathname to a restricted directory.
- Exploitation allows an attacker to write files with the privileges of the user running BuildStream.
- The fix is available in version 2.8.2.
- MITRE rates the likelihood of exploitation for this weakness type as high.
Background
This disclosure follows a recent trend of path traversal vulnerabilities in software libraries, such as the Symfony Filesystem flaw (CVE-2026-135803) and the EUSurvey import issue (CVE-2026-101862) reported earlier this month. These incidents highlight ongoing risks in how software handles external input for file operations. Additionally, other Apache Software Foundation products, including IoTDB and Perl, have recently issued patches for distinct security flaws, indicating a period of active maintenance across the ecosystem.
Why it matters
Path traversal vulnerabilities in build automation tools pose significant risks to infrastructure integrity. Since BuildStream is used for remote caching and execution, a compromised server could potentially inject malicious files into the host environment. While the primary mitigation involves using trusted servers, the existence of this flaw underscores the need for strict input validation in development pipelines to prevent unauthorized file writes.
What to watch
Organizations using Apache BuildStream should immediately upgrade to version 2.8.2. Administrators should also audit their remote cache and execution servers to ensure they are trusted and secure, as the vulnerability allows for file writes with the privileges of the running user.
Want the full story? Read the original reporting
Read on CVEs | Zero Wire | Cloudflare Radar