CVE-2026-104813: Apache BuildStream: path traversal via unvalidated CAS Directory
Improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Apache BuildStream allows malicious or compromised artifact or execution servers to write files on the host, with the privileges of the user running BuildStream, as part of bst artifact checkout.
The impact of this issue is mitigated by:
BuildStream projects should only use trusted servers for remote cache and remote execution as otherwise the build output can also not be trusted
This issue affects Apache BuildStream: through 2.8.1. Users are recommended to upgrade to version 2.8.2, which fixes the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.8.2 - Compensating control
Use only trusted servers for remote cache and remote execution in BuildStream projects.
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
BuildStream users who run `bst artifact checkout` against a malicious or compromised remote cache or remote execution server are exposed. The server can write files on the checkout host with the privileges of the user running BuildStream.
Are default BuildStream deployments affected?
The issue affects Apache BuildStream through version 2.8.1, but its impact is mitigated when projects use only trusted remote cache and remote execution servers. A project relying exclusively on trusted servers is less exposed to the described attack path.
What is required for exploitation?
An attacker needs control of, or the ability to compromise, an artifact or execution server used by the BuildStream project. Exploitation occurs as part of `bst artifact checkout`.
What should teams do if they cannot upgrade immediately?
Restrict BuildStream projects to trusted remote cache and remote execution servers, and avoid checking out artifacts from servers that may be malicious or compromised. Upgrade to version 2.8.2 when possible.