CVE-2023-43116 Buildkite Elastic CI for AWS symbolic link following vulnerability

High 7.8 Published Updated

A local attacker can change ownership of arbitrary directories via symlink following in the Buildkite agent permissions script.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-43116?

CVE-2023-43116 is a high-severity path traversal vulnerability in n/a, published on 22 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-59

Which versions are affected by CVE-2023-43116?

2 open source packages ship an affected version, including github.com/buildkite/elastic-ci-stack-for-aws/v6. It affects 1 product.

PackageAffectedFixed in
github.com/buildkite/elastic-ci-stack-for-aws/v6 GoAll versions6.7.0
github.com/buildkite/elastic-ci-stack-for-aws/v6 GoAll versions6.7.0

Products include Buildkite Elastic Ci Stack.

How do I fix CVE-2023-43116?

Upgrade github.com/buildkite/elastic-ci-stack-for-aws/v6 to 6.7.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-43116 being exploited?

There is no known exploitation of CVE-2023-43116 in the wild and no public exploit code.

Sources

Also known as GHSA-7c44-7j7v-w554.

Is CVE-2023-43116 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free