CVE-2024-1726: Quarkus Denial of Service Vulnerability
MODERATECVE-2024-1726 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-281: Improper Preservation of Permissions) affecting Quarkus libraries in the Maven ecosystem. The issue involves security checks in resteasy reactive may trigger a denial of service. Remediation is available by upgrading affected packages to version 3.8.0, 3.7.4, 3.2.11.Final.
CVE-2024-1726 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2024-1726
To remediate this vulnerability, upgrade all affected Quarkus 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.resteasy.reactive</groupId>
<artifactId>resteasy-reactive</artifactId>
<version>3.8.0</version>
</dependency>
<dependency>
<groupId>io.quarkus.resteasy.reactive</groupId>
<artifactId>resteasy-reactive</artifactId>
<version>3.7.4</version>
</dependency>
<dependency>
<groupId>io.quarkus.resteasy.reactive</groupId>
<artifactId>resteasy-reactive</artifactId>
<version>3.2.11.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.resteasy.reactive
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-1726, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.quarkus.resteasy.reactive
Analyze the terminal output to locate any version of Quarkus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.quarkus.resteasy.reactive 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-281: Improper Preservation of Permissions, where the product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended. In Quarkus, 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-1726 Affected Quarkus Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.quarkus.resteasy.reactive:resteasy-reactive
|
Maven |
≥ 3.8.0.CR1
< 3.8.0
All 1 versions
3.8.0.CR1
|
3.8.0
|
|
io.quarkus.resteasy.reactive:resteasy-reactive
|
Maven |
≥ 3.3.0.CR1
< 3.7.4
|
3.7.4
|
|
io.quarkus.resteasy.reactive:resteasy-reactive
|
Maven |
< 3.2.11.Final
|
3.2.11.Final
|
References
Frequently Asked Questions
What is CVE-2024-1726?
Which Quarkus versions are affected?
What version fixes CVE-2024-1726?
Is resteasy-reactive affected?
What is the CVSS score of CVE-2024-1726?
What CWE is associated with CVE-2024-1726?
How can I check Maven dependencies for CVE-2024-1726?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mv64-86g8-cqq7",
"modified" : "2024-04-25T23:34:44Z",
"published" : "2024-04-25T18:30:39Z",
"aliases" : [ "CVE-2024-1726" ],
"summary" : "Quarkus: security checks in resteasy reactive may trigger a denial of service",
"details" : "A flaw was discovered in the RESTEasy Reactive implementation in Quarkus. Due to security checks for some JAX-RS endpoints being performed after serialization, more processing resources are consumed while the HTTP request is checked. In certain configurations, if an attacker has knowledge of any POST, PUT, or PATCH request paths, they can potentially identify vulnerable endpoints and trigger excessive resource usage as the endpoints process the requests. This can result in a denial of service.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkus.resteasy.reactive:resteasy-reactive"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.8.0.CR1"
}, {
"fixed" : "3.8.0"
} ]
} ],
"versions" : [ "3.8.0.CR1" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkus.resteasy.reactive:resteasy-reactive"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0.CR1"
}, {
"fixed" : "3.7.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkus.resteasy.reactive:resteasy-reactive"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.11.Final"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1726"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkusio/quarkus/commit/34c1a63baf5401d0d578a23a1a4deb4b841ce65b"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkusio/quarkus/commit/96d93427f3b4a7d3cff34d8b7b883e13cecd359c"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:1662"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-1726"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2265158"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/quarkusio/quarkus"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-281" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T23:34:44Z",
"nvd_published_at" : "2024-04-25T17:15:48Z"
}
}