CVE-2024-2700 Quarkus-core: leak of local configuration properties into quarkus applications

High 7.0 Published Updated

Developers must ensure sensitive build-time environment variables are not leaked into production Quarkus applications, potentially exposing secrets or weakening security.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-2700?

CVE-2024-2700 is a high-severity vulnerability in HawtIO 4.0.0 for Red Hat build of Apache Camel 4, published on 4 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in the quarkus-core component. Quarkus captures local environment variables from the Quarkus namespace during the application's build, therefore, running the resulting application inherits the values captured at build time. Some local environment variables may have been set by the developer or CI environment for testing purposes, such as dropping the database during application startup or trusting all TLS certificates to accept self-signed certificates. If these properties are configured using environment variables or the .env facility, they are captured into the built application, which can lead to dangerous behavior if the application does not override these values. This behavior only happens for configuration properties from the `quarkus.*` namespace. Application-specific properties are not captured.

Weakness: CWE-526

Which versions are affected by CVE-2024-2700?

6 open source packages ship an affected version, including io.quarkus:quarkus-core.

PackageAffectedFixed in
io.quarkus:quarkus-core MavenAll versions3.2.12.Final
io.quarkus:quarkus-core MavenAll versions3.2.12.Final
io.quarkus:quarkus-core MavenFrom 3.3.0.CR13.8.4
io.quarkus:quarkus-core MavenFrom 3.3.0.CR13.8.4
io.quarkus:quarkus-core MavenFrom 3.9.0.CR13.9.2
io.quarkus:quarkus-core MavenFrom 3.9.0.CR13.9.2

How do I fix CVE-2024-2700?

Upgrade io.quarkus:quarkus-core to a fixed version for your release line: 3.2.12.Final, 3.8.4 or 3.9.2.

Is CVE-2024-2700 being exploited?

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

Sources

Also known as GHSA-f8h5-v2vg-46rr.

Is CVE-2024-2700 in your software?

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

Check your SBOMs for free