Buildkite Elastic CI for AWS symbolic link following vulnerability
Date: 2023-12
Affected: go/github.com/buildkite/elastic-ci-stack-for-aws/v6
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2023-43116
CVE-2023-43741
CWE: CWE-367
CWE-59
CVSS: 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

A symbolic link following vulnerability in Buildkite Elastic CI for AWS versions prior to 6.7.1 and 5.22.5 allows the buildkite-agent user to change ownership of arbitrary directories via the PIPELINE_PATH variable in the fix-buildkite-agent-builds-permissions script.


Mitigations:

Architectural layers (MAESTRO):