Race condition in osbuild-composer - CVE-2024-2307
Published: May 1, 2024
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
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
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