Vulnerabilities in pkg:maven/io.quarkus/quarkus-core
PACKAGECVE-2024-2700 is a HIGH (CVSS 7.0) quarkus-core leaks local environment variables vulnerability (CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable) affecting Quarkus core libraries in the Maven ecosystem. The issue involves quarkus-core leaks local environment variables from quarkus namespace during application's build. Remediation is available by upgrading affected packages to version 3.9.2, 3.8.4, 3.2.12.Final.
pkg:maven/io.quarkus/quarkus-core
Vulnerability advisories affecting package pkg:maven/io.quarkus/quarkus-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f8h5-v2vg-46rr | CVE-2024-2700 | HIGH | quarkus-core leaks local environment variables from Quarkus namespace during application's build |
| GHSA-3fhx-3vvg-2j84 | CVE-2023-2974 | MODERATE | quarkus-core vulnerable to client driven TLS cipher downgrading |
CVE-2024-2700 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-2700
To remediate this vulnerability, upgrade all affected Quarkus core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core</artifactId>
<version>3.9.2</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core</artifactId>
<version>3.8.4</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core</artifactId>
<version>3.2.12.Final</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.quarkus
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-2700, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.quarkus
Analyze the terminal output to locate any version of Quarkus core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.9.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.quarkus command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable, where the product uses an environment variable to store unencrypted sensitive information. In Quarkus core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-2700 Affected Quarkus core Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.quarkus:quarkus-core
|
Maven |
≥ 3.9.0.CR1
< 3.9.2
|
3.9.2
|
|
io.quarkus:quarkus-core
|
Maven |
≥ 3.3.0.CR1
< 3.8.4
|
3.8.4
|
|
io.quarkus:quarkus-core
|
Maven |
< 3.2.12.Final
|
3.2.12.Final
|
References
Frequently Asked Questions
What is CVE-2024-2700?
Which Quarkus core versions are affected?
What version fixes CVE-2024-2700?
Is quarkus-core affected?
What is the CVSS score of CVE-2024-2700?
What CWE is associated with CVE-2024-2700?
How can I check Maven dependencies for CVE-2024-2700?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f8h5-v2vg-46rr",
"modified" : "2024-12-13T00:30:50Z",
"published" : "2024-04-04T15:30:34Z",
"aliases" : [ "CVE-2024-2700" ],
"summary" : "quarkus-core leaks local environment variables from Quarkus namespace during application's build",
"details" : "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. \n\nHowever, 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.\n\nThis behavior only happens for configuration properties from the `quarkus.*` namespace. So, application-specific properties are not captured.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkus:quarkus-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.9.0.CR1"
}, {
"fixed" : "3.9.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.9.1"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkus:quarkus-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0.CR1"
}, {
"fixed" : "3.8.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.8.3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkus:quarkus-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.12.Final"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2700"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkusio/quarkus/issues/39927"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkusio/quarkus/commit/2b24dc8dbc8f390c97428783d67614418676fc2e"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkusio/quarkus/commit/91c3a58eaefe59e0afd430653d1636d664bd593f"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkusio/quarkus/commit/990c3ee5dd5c689f514e5e87c221bce6d5dff267"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:11023"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:2106"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:2705"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:3527"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:4028"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:4873"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-2700"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2273281"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/quarkusio/quarkus"
}, {
"type" : "WEB",
"url" : "https://quarkus.io/blog/quarkus-3-2-12-final-released"
}, {
"type" : "WEB",
"url" : "https://quarkus.io/blog/quarkus-3-8-4-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-526" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-04T17:01:45Z",
"nvd_published_at" : "2024-04-04T14:15:09Z"
}
}