CVE-2024-2307 Osbuild-composer: race condition may disable gpg verification for package repositories

Medium 6.1 Published Updated

A race condition in osbuild-composer disables GPG verification, allowing attackers to inject untrusted code into built images via Man-in-the-Middle attacks.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-2307?

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.

Official 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.

Weakness: CWE-347

Which versions are affected by CVE-2024-2307?

Linux distribution packages (24)
osbuild-composer AlmaLinux:8All versions101-1.el8.alma.1
osbuild-composer-core AlmaLinux:8All versions101-1.el8.alma.1
osbuild-composer-worker AlmaLinux:8All versions101-1.el8.alma.1
osbuild-composer AlmaLinux:9All versions101-1.el9.alma.1
osbuild-composer-core AlmaLinux:9All versions101-1.el9.alma.1
osbuild-composer-worker AlmaLinux:9All versions101-1.el9.alma.1
osbuild-composer Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-core Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-core-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-tests-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-worker Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer-worker-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:101-1.el8
osbuild-composer Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-core Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-core-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-tests-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-worker Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild-composer-worker-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:101-1.el9
osbuild Rocky Linux:8All versions0:110-1.el8.rocky.0.2
osbuild-composer Rocky Linux:8All versions0:101-1.el8.rocky.0.4

How do I fix CVE-2024-2307?

Apply the vendor's patch.

Is CVE-2024-2307 being exploited?

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

Sources

Also known as ALSA-2024:2119, ALSA-2024:2961, GHSA-64jx-m9pq-gr8c, RHSA-2024:2119, RHSA-2024:2961, RLSA-2024:2961.

Is CVE-2024-2307 in your software?

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

Check your SBOMs for free