{"answers":{"affected":"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.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43741 exists.","fix":"Upgrade github.com/buildkite/elastic-ci-stack-for-aws/v6 to 6.7.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-43741 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43741 exists.\n\nAffected packages and fixed versions:\n- github.com/buildkite/elastic-ci-stack-for-aws/v6 (Go): affected all versions; fixed in 6.7.1\n- github.com/buildkite/elastic-ci-stack-for-aws/v6 (Go): affected all versions; fixed in 6.7.1\n- github.com/buildkite/elastic-ci-stack-for-aws/v6 (Go): affected all versions; fixed in 6.7.1\n- github.com/buildkite/elastic-ci-stack-for-aws (Go): affected all versions; no fix listed\n- github.com/buildkite/elastic-ci-stack-for-aws/v5 (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-43741/ (Markdown: https://insights.sbomify.com/CVE-2023-43741/index.md)","id":"CVE-2023-43741","markdown":"https://insights.sbomify.com/CVE-2023-43741/index.md","name":"CVE-2023-43741","record":{"aliases":["GHSA-r5hg-349q-mg2q","GO-2024-2440"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Buildkite Elastic CI","requires_auth":"low_privilege","summary":"A race condition in Buildkite Elastic CI allows bypassing symlink checks, potentially enabling privilege escalation or security bypass.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"elastic_ci_stack","vendor":"buildkite"}],"cvss":{"score":7,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Buildkite Elastic CI for AWS time-of-check-time-of-use race condition vulnerability","id":"CVE-2023-43741","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2023"},"n_packages":5,"n_references":1,"next":{"headline":"Auth bypass in n/a","id":"CVE-2023-43742"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/buildkite/elastic-ci-stack-for-aws","purl":"pkg:golang/github.com/buildkite/elastic-ci-stack-for-aws","source":"GO-2024-2440"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/buildkite/elastic-ci-stack-for-aws/v5","purl":"pkg:golang/github.com/buildkite/elastic-ci-stack-for-aws/v5","source":"GO-2024-2440"},{"ecosystem":"Go","fixed":["6.7.1"],"introduced":["0"],"last_affected":[],"package":"github.com/buildkite/elastic-ci-stack-for-aws/v6","purl":null,"source":"GHSA-r5hg-349q-mg2q"},{"ecosystem":"Go","fixed":["6.7.1"],"introduced":["0"],"last_affected":[],"package":"github.com/buildkite/elastic-ci-stack-for-aws/v6","purl":"pkg:golang/github.com/buildkite/elastic-ci-stack-for-aws/v6","source":"GHSA-r5hg-349q-mg2q"},{"ecosystem":"Go","fixed":["6.7.1"],"introduced":["0"],"last_affected":[],"package":"github.com/buildkite/elastic-ci-stack-for-aws/v6","purl":"pkg:golang/github.com/buildkite/elastic-ci-stack-for-aws/v6","source":"GO-2024-2440"}],"prev":{"headline":"Online Book Store Project v1.0 - Insecure File Upload","id":"CVE-2023-43740"},"products":["n/a"],"published":"2023-12-22","related":[{"cvss_score":7.8,"headline":"Buildkite Elastic CI for AWS symbolic link following vulnerability","id":"CVE-2023-43116","kev_date_added":null,"published":"2023-12-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-27","vendors":["n/a"]},"summary":"A race condition in Buildkite Elastic CI allows bypassing symlink checks, potentially enabling privilege escalation or security bypass.","url":"https://insights.sbomify.com/CVE-2023-43741/"}