{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-2307 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-2307 is a medium-severity vulnerability in Red Hat Enterprise Linux 8, published on 19 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-2307 and fix it if it is affected.\n\nWhat it is: CVE-2024-2307 is a medium-severity vulnerability in Red Hat Enterprise Linux 8, published on 19 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-2307 in the wild and no public exploit code.\n\nAffected product: Red Hat Enterprise Linux 8. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2307/ (Markdown: https://insights.sbomify.com/CVE-2024-2307/index.md)","id":"CVE-2024-2307","markdown":"https://insights.sbomify.com/CVE-2024-2307/index.md","name":"CVE-2024-2307","record":{"aliases":["ALSA-2024:2119","ALSA-2024:2961","GHSA-64jx-m9pq-gr8c","RHSA-2024:2119","RHSA-2024:2961","RLSA-2024:2961"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Red Hat Enterprise Linux","requires_auth":"high_privilege","summary":"A race condition in osbuild-composer disables GPG verification, allowing attackers to inject untrusted code into built images via Man-in-the-Middle attacks.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"A flaw was found in osbuild-composer. A condition can be triggered that disables GPG verification for package repositories, which can expose the build phase to a Man-in-the-Middle attack, allowing untrusted code to be installed into an image being built.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Osbuild-composer: race condition may disable gpg verification for package repositories","id":"CVE-2024-2307","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"race_condition","year":"2024"},"n_packages":24,"n_references":4,"next":{"headline":"ElementInvader Addons for Elementor \u003c= 1.2.2 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2024-2308"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["101-1.el8.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2024:2961"},{"ecosystem":"AlmaLinux:8","fixed":["101-1.el8.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2024:2961"},{"ecosystem":"AlmaLinux:8","fixed":["101-1.el8.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2024:2961"},{"ecosystem":"AlmaLinux:9","fixed":["101-1.el9.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2024:2119"},{"ecosystem":"AlmaLinux:9","fixed":["101-1.el9.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2024:2119"},{"ecosystem":"AlmaLinux:9","fixed":["101-1.el9.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/redhat/osbuild-composer","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/redhat/osbuild-composer-core","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-core-debuginfo","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-debuginfo","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debugsource","purl":"pkg:rpm/redhat/osbuild-composer-debugsource","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-tests-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-tests-debuginfo","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/redhat/osbuild-composer-worker","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-1.el8"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-worker-debuginfo","source":"RHSA-2024:2961"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/redhat/osbuild-composer","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/redhat/osbuild-composer-core","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-core-debuginfo","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-debuginfo","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debugsource","purl":"pkg:rpm/redhat/osbuild-composer-debugsource","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-tests-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-tests-debuginfo","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/redhat/osbuild-composer-worker","source":"RHSA-2024:2119"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:101-1.el9"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-worker-debuginfo","source":"RHSA-2024:2119"},{"ecosystem":"Rocky Linux:8","fixed":["0:110-1.el8.rocky.0.2"],"introduced":["0"],"last_affected":[],"package":"osbuild","purl":"pkg:rpm/rocky-linux/osbuild?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:2961"},{"ecosystem":"Rocky Linux:8","fixed":["0:101-1.el8.rocky.0.4"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/rocky-linux/osbuild-composer?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:2961"}],"prev":{"headline":"Revslider \u003c= 6.6.20 - Authenticated (Author+) Stored Cross-Site Scripting","id":"CVE-2024-2306"},"products":["Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9"],"published":"2024-03-19","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-25","vendors":["Red Hat"]},"summary":"A race condition in osbuild-composer disables GPG verification, allowing attackers to inject untrusted code into built images via Man-in-the-Middle attacks.","url":"https://insights.sbomify.com/CVE-2024-2307/"}