{"answers":{"affected":"3 open source packages ship an affected version, including github.com/openshift/builder.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7387 exists.","fix":"No fix has been published for CVE-2024-7387 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-7387 is a critical path traversal vulnerability in Red Hat OpenShift Container Platform 4.12, published on 16 Sep 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-7387 and fix it if it is affected.\n\nWhat it is: CVE-2024-7387 is a critical path traversal vulnerability in Red Hat OpenShift Container Platform 4.12, published on 16 Sep 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7387 exists.\n\nAffected packages and fixed versions:\n- github.com/openshift/builder (Go): affected all versions; no fix listed\n- github.com/openshift/builder (Go): affected all versions up to 4.0.0; no fix listed\n- github.com/openshift/builder (Go): affected all versions up to 4.0.0; 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-2024-7387/ (Markdown: https://insights.sbomify.com/CVE-2024-7387/index.md)","id":"CVE-2024-7387","markdown":"https://insights.sbomify.com/CVE-2024-7387/index.md","name":"CVE-2024-7387","record":{"aliases":["GHSA-qqv8-ph7f-h3f7","GO-2024-3129"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"OpenShift builder","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary commands on OpenShift nodes via path traversal in privileged build containers using the Docker strategy.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"description":"A flaw was found in openshift/builder. This vulnerability allows command injection via path traversal, where a malicious user can execute arbitrary commands on the OpenShift node running the builder container. When using the “Docker” strategy, executable files inside the privileged build container can be overridden using the `spec.source.secrets.secret.destinationDir` attribute of the `BuildConfig` definition. An attacker running code in a privileged container could escalate their permissions on the node running the container.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy","id":"CVE-2024-7387","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":11,"next":{"headline":"WP Bannerize Pro \u003c= 1.9.0 - Authenticated (Editor+) Stored Cross-Site Scripting","id":"CVE-2024-7388"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/openshift/builder","purl":"pkg:golang/github.com/openshift/builder","source":"GO-2024-3129"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.0.0"],"package":"github.com/openshift/builder","purl":null,"source":"GHSA-qqv8-ph7f-h3f7"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.0.0"],"package":"github.com/openshift/builder","purl":"pkg:golang/github.com/openshift/builder","source":"GHSA-qqv8-ph7f-h3f7"}],"prev":{"headline":"Premium Packages – Sell Digital Products Securely \u003c= 5.9.1 - Cross-Site Request Forgery","id":"CVE-2024-7386"},"products":["Red Hat OpenShift Container Platform 4.12","Red Hat OpenShift Container Platform 4.13","Red Hat OpenShift Container Platform 4.14","Red Hat OpenShift Container Platform 4.15","Red Hat OpenShift Container Platform 4.16","Red Hat OpenShift Container Platform 4.17","Red Hat OpenShift Container Platform 4.18"],"published":"2024-09-16","related":[],"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":"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":"2026-08-11","vendors":["Red Hat"]},"summary":"Attackers can execute arbitrary commands on OpenShift nodes via path traversal in privileged build containers using the Docker strategy.","url":"https://insights.sbomify.com/CVE-2024-7387/"}