CVE Database›CVE-2024-2307

CVE-2024-2307

osbuild-composer: race condition may disable GPG verification for package repositories

Loading…

Severity

Moderate

Red Hat Product Security

6.1

CVSS 3.1

Review impact separately from score.

Published · March 19, 2024

Updated · February 26, 2026

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.

Statement

The race condition in osbuild-composer that leads to unintentional GPG verification disabling for third-party repositories introduces a moderate severity risk. While the issue can potentially allow the installation of untrusted code into built images, its impact is limited to scenarios where both a third-party repository with GPG-checked RPMs and another repository with GPG checking disabled are concurrently added. Additionally, the insecure setting winning due to the race condition further narrows the circumstances under which the vulnerability can be exploited. However, the potential for bypassing GPG verification in specific configurations poses a tangible risk to the integrity of built images, justifying its classification as a moderate severity issue.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 6.1
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L

CWE-347 · Improper Verification of Cryptographic Signature