CVE-2024-1726: Quarkus Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-mv64-86g8-cqq7
CVSS 5.3
CWE-281
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-1726
GHSA Identifier GHSA-mv64-86g8-cqq7
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-281: Improper Preservation of Permissions
Affected Product Quarkus
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

io.quarkus.resteasy.reactive:resteasy-reactive fixed: 3.8.0
<dependency>
    <groupId>io.quarkus.resteasy.reactive</groupId>
    <artifactId>resteasy-reactive</artifactId>
    <version>3.8.0</version>
</dependency>
io.quarkus.resteasy.reactive:resteasy-reactive fixed: 3.7.4
<dependency>
    <groupId>io.quarkus.resteasy.reactive</groupId>
    <artifactId>resteasy-reactive</artifactId>
    <version>3.7.4</version>
</dependency>
io.quarkus.resteasy.reactive:resteasy-reactive fixed: 3.2.11.Final
<dependency>
    <groupId>io.quarkus.resteasy.reactive</groupId>
    <artifactId>resteasy-reactive</artifactId>
    <version>3.2.11.Final</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-1726 Affected Quarkus Versions

3 component(s)
Fixed Versions:
3.8.03.7.43.2.11.Final
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?
CVE-2024-1726 is a security vulnerability in Quarkus involving security checks in resteasy reactive may trigger a denial of service under CWE-281: Improper Preservation of Permissions.
Which Quarkus versions are affected?
Affected versions include releases prior to 3.8.0, 3.7.4, 3.2.11.Final across affected packages: io.quarkus.resteasy.reactive:resteasy-reactive.
What version fixes CVE-2024-1726?
Upgrading to 3.8.0, 3.7.4, 3.2.11.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is resteasy-reactive affected?
Yes, io.quarkus.resteasy.reactive:resteasy-reactive is affected in releases prior to 3.8.0, 3.7.4, 3.2.11.Final. Upgrade your dependency to 3.8.0, 3.7.4, 3.2.11.Final or later.
What is the CVSS score of CVE-2024-1726?
CVE-2024-1726 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2024-1726?
CVE-2024-1726 is classified under CWE-281: Improper Preservation of Permissions (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.).
How can I check Maven dependencies for CVE-2024-1726?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.quarkus.resteasy.reactive'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}