Race condition in osbuild-composer - CVE-2024-2307

 

Race condition in osbuild-composer - CVE-2024-2307

Published: May 1, 2024


Vulnerability identifier: #VU89084
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-2307
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to a race condition when performing verification for package repositories within the SourceConfig.RepoConfig() function in internal/store/store.go. A remote attacker can disables GPG verification and expose the build phase to a Man-in-the-Middle attack, allowing untrusted code to be installed into an image being built.


Affected software

osbuild-composer
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
osbuild-composer (Red Hat package)
osbuild-composer
osbuild-composer-core
osbuild-composer-worker
osbuild (Red Hat package)
osbuild
osbuild-doc
osbuild-luks2
osbuild-lvm2
osbuild-ostree
osbuild-selinux
python3-osbuild

How to mitigate CVE-2024-2307

Install updates from vendor's website.

osbuild-composer - update to 94
osbuild-composer (Red Hat package) - addressed in versions 101-1.el8, 101-1.el9
osbuild-composer - update to 101-2
osbuild-composer-core - update to 101-2
osbuild-composer-worker - update to 101-2
osbuild (Red Hat package) - addressed in versions 110-1.el8, 110-1.el9
osbuild - update to 110-1.0.1
osbuild-doc - update to 110-1.0.1
osbuild-luks2 - update to 110-1.0.1
osbuild-lvm2 - update to 110-1.0.1
osbuild-ostree - update to 110-1.0.1
osbuild-selinux - update to 110-1.0.1
python3-osbuild - update to 110-1.0.1

External References

Related Security Bulletins