HIGH 7.0

CVE-2024-2700

quarkus-core leaks local environment variables from Quarkus namespace during application's build

Description

A vulnerability was found in the quarkus-core component. Quarkus captures the local environment variables from the Quarkus namespace during the application's build. Thus, running the resulting application inherits the values captured at build time.

However, some local environment variables may have been set by the developer / CI environment for testing purposes, such as dropping the database during the 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. It may lead to dangerous behavior if the application does not override these values.

This behavior only happens for configuration properties from the quarkus.* namespace. So, application-specific properties are not captured.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
io.quarkus » quarkus-core
< 3.2.12.Final>= 3.3.0.CR1, < 3.8.4>= 3.9.0.CR1, < 3.9.2
3.2.12.Final, 3.8.4, 3.9.2

Blast radius

1affected artifacts
326affected versions
3,325dependent artifacts (est.)
166,472dependent versions

46% of the dependent artifacts (1,539) still pull an affected version in their latest release.

DepthDependent versions
Direct
33,467
2 hops
84,297
3 hops
40,033
4 hops
7,722
5 hops
916
6 hops
37

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webgithub.com
Webgithub.com
Webgithub.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webbugzilla.redhat.com
Webquarkus.io
Webquarkus.io