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)
| Artifact | Affected versions | Fixed 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
46% of the dependent artifacts (1,539) still pull an affected version in their latest release.
| Depth | Dependent 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
- io.quarkus » quarkus-junit52,452 usages
- io.quarkus » quarkus-arc1,564 usages
- io.quarkus » quarkus-maven-plugin1,484 usages
- io.quarkus » quarkus-resteasy1,252 usages
- io.quarkus » quarkus-junit5-internal1,163 usages
- io.quarkus » quarkus-arc-deployment1,078 usages
- io.quarkus » quarkus-core-deployment770 usages
- io.quarkus » quarkus-resteasy-jackson544 usages
- io.quarkus » quarkus-smallrye-health470 usages
- io.quarkus » quarkus-smallrye-openapi420 usages
- io.quarkus » quarkus-rest-jackson380 usages
- io.quarkus » quarkus-jackson379 usages
- io.quarkus » quarkus-rest372 usages
- io.quarkus » quarkus-grpc357 usages
- io.github.open-accelerators » mercury-common242 usages
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
| Advisory | NVD CVE-2024-2700 | nvd.nist.gov |
| Package | quarkusio/quarkus | github.com |
| Web | quarkusio/quarkus issue #39927 | github.com |
| Web | quarkusio/quarkus commit 2b24dc8 | github.com |
| Web | quarkusio/quarkus commit 91c3a58 | github.com |
| Web | quarkusio/quarkus commit 990c3ee | github.com |
| Web | errata/RHSA-2024:11023 | access.redhat.com |
| Web | errata/RHSA-2024:2106 | access.redhat.com |
| Web | errata/RHSA-2024:2705 | access.redhat.com |
| Web | errata/RHSA-2024:3527 | access.redhat.com |
| Web | errata/RHSA-2024:4028 | access.redhat.com |
| Web | errata/RHSA-2024:4873 | access.redhat.com |
| Web | security/cve/CVE-2024-2700 | access.redhat.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | blog/quarkus-3-2-12-final-released | quarkus.io |
| Web | blog/quarkus-3-8-4-released | quarkus.io |
