CVE-2023-5675: Quarkus Authorization Flaw Vulnerability

MODERATE
Advisory Identifier: GHSA-25w4-hfqg-4r52
CVSS 6.5
CWE-287 CWE-285
Published
Advisory Summary

CVE-2023-5675 is a MODERATE (CVSS 6.5) authorization flaw vulnerability (CWE-287: Improper Authentication) affecting Quarkus libraries in the Maven ecosystem. The issue involves authorization flaw in quarkus resteasy reactive and classic. Remediation is available by upgrading affected packages to version 3.2.10.Final, 3.6.9, 3.7.1.

CVE-2023-5675 at a Glance

CVE Identifier CVE-2023-5675
GHSA Identifier GHSA-25w4-hfqg-4r52
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-287: Improper Authentication
Affected Product Quarkus
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:L/I:L/A:N).

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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-5675

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:quarkus-resteasy-reactive-common-deployment fixed: 3.2.10.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-reactive-common-deployment</artifactId>
    <version>3.2.10.Final</version>
</dependency>
io.quarkus:quarkus-resteasy-reactive-common fixed: 3.2.10.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-reactive-common</artifactId>
    <version>3.2.10.Final</version>
</dependency>
io.quarkus:quarkus-resteasy-reactive-common-deployment fixed: 3.6.9
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-reactive-common-deployment</artifactId>
    <version>3.6.9</version>
</dependency>
io.quarkus:quarkus-resteasy-reactive-common fixed: 3.6.9
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-reactive-common</artifactId>
    <version>3.6.9</version>
</dependency>
io.quarkus:quarkus-resteasy-reactive-common-deployment fixed: 3.7.1
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-reactive-common-deployment</artifactId>
    <version>3.7.1</version>
</dependency>
io.quarkus:quarkus-resteasy-reactive-common fixed: 3.7.1
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-reactive-common</artifactId>
    <version>3.7.1</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

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-5675, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.10.Final), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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 found in Quarkus. When a Quarkus RestEasy Classic or Reactive JAX-RS endpoint has its methods declared in the abstract Java class or customized by Quarkus extensions using the annotation processor, the authorization of these methods will not be enforced if it is enabled by either 'quarkus.security.jaxrs.deny-unannotated-endpoints' or 'quarkus.security.jaxrs.default-roles-allowed' properties. While backports of this fix exist in versions 3.6.9 and 3.7.1 users of older versions are encouraged to update to the 3.8.x LTS branch.

CVE-2023-5675 Affected Quarkus Versions

6 component(s)
Fixed Versions:
3.2.10.Final3.6.93.7.1
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus:quarkus-resteasy-reactive-common-deployment
Maven
< 3.2.10.Final
3.2.10.Final
io.quarkus:quarkus-resteasy-reactive-common
Maven
< 3.2.10.Final
3.2.10.Final
io.quarkus:quarkus-resteasy-reactive-common-deployment
Maven
≥ 3.3.0
< 3.6.9
3.6.9
io.quarkus:quarkus-resteasy-reactive-common
Maven
≥ 3.3.0
< 3.6.9
3.6.9
io.quarkus:quarkus-resteasy-reactive-common-deployment
Maven
≥ 3.7.0
< 3.7.1
3.7.1
io.quarkus:quarkus-resteasy-reactive-common
Maven
≥ 3.7.0
< 3.7.1
3.7.1

References

Frequently Asked Questions

What is CVE-2023-5675?
CVE-2023-5675 is a security vulnerability in Quarkus involving authorization flaw in quarkus resteasy reactive and classic under CWE-287: Improper Authentication.
Which Quarkus versions are affected?
Affected versions include releases prior to 3.2.10.Final, 3.6.9, 3.7.1 across affected packages: io.quarkus:quarkus-resteasy-reactive-common-deployment, io.quarkus:quarkus-resteasy-reactive-common.
What version fixes CVE-2023-5675?
Upgrading to 3.2.10.Final, 3.6.9, 3.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is quarkus-resteasy-reactive-common-deployment affected?
Yes, io.quarkus:quarkus-resteasy-reactive-common-deployment is affected in releases prior to 3.2.10.Final, 3.6.9, 3.7.1. Upgrade your dependency to 3.2.10.Final, 3.6.9, 3.7.1 or later.
Is quarkus-resteasy-reactive-common affected?
Yes, io.quarkus:quarkus-resteasy-reactive-common is affected in releases prior to 3.2.10.Final, 3.6.9, 3.7.1. Upgrade your dependency to 3.2.10.Final, 3.6.9, 3.7.1 or later.
What is the CVSS score of CVE-2023-5675?
CVE-2023-5675 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-5675?
CVE-2023-5675 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2023-5675?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.quarkus'. 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-25w4-hfqg-4r52",
  "modified" : "2024-08-02T15:45:01Z",
  "published" : "2024-04-25T18:30:39Z",
  "aliases" : [ "CVE-2023-5675" ],
  "summary" : "Quarkus: authorization flaw in quarkus resteasy reactive and classic",
  "details" : "A flaw was found in Quarkus. When a Quarkus RestEasy Classic or Reactive JAX-RS endpoint has its methods declared in the abstract Java class or customized by Quarkus extensions using the annotation processor, the authorization of these methods will not be enforced if it is enabled by either 'quarkus.security.jaxrs.deny-unannotated-endpoints' or 'quarkus.security.jaxrs.default-roles-allowed' properties.\n\nWhile backports of this fix exist in versions 3.6.9 and 3.7.1 users of older versions are encouraged to update to the 3.8.x LTS branch.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-resteasy-reactive-common-deployment"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.10.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-resteasy-reactive-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.10.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-resteasy-reactive-common-deployment"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.6.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-resteasy-reactive-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.6.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-resteasy-reactive-common-deployment"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.7.0"
      }, {
        "fixed" : "3.7.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-resteasy-reactive-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.7.0"
      }, {
        "fixed" : "3.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5675"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/b7dd69a3012a872f2846d73072ff232e07da74dd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/bf2ef6c504b989f74ceb5947d823b6ab208f8b6e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/c026b1cf6f2e07cc50b65c824d922319248d9341"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/d802748128cd1932279b7c334f3792d481814ef5"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0494"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0495"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-5675"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2245197"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-287" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-25T19:54:40Z",
    "nvd_published_at" : "2024-04-25T16:15:08Z"
  }
}