CVE-2023-43741 Buildkite Elastic CI for AWS time-of-check-time-of-use race condition vulnerability

High 7.0 Published Updated

A race condition in Buildkite Elastic CI allows bypassing symlink checks, potentially enabling privilege escalation or security bypass.

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-43741?

CVE-2023-43741 is a high-severity 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 time-of-check-time-of-use race condition vulnerability in Buildkite Elastic CI for AWS versions prior to 6.7.1 and 5.22.5 allows the buildkite-agent user to bypass a symbolic link check for the PIPELINE_PATH variable in the fix-buildkite-agent-builds-permissions script.

Weakness: CWE-367

Which versions are affected by CVE-2023-43741?

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

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

Products include Buildkite Elastic Ci Stack.

How do I fix CVE-2023-43741?

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

Is CVE-2023-43741 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43741 exists.

Sources

Also known as GHSA-r5hg-349q-mg2q, GO-2024-2440.

Is CVE-2023-43741 in your software?

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

Check your SBOMs for free