CVE-2023-1584: Quarkus oidc Quarkus OIDC Can Leak Both Vulnerability

HIGH
Advisory Identifier: GHSA-6hc9-cf8x-hf83
CVSS 7.5
CWE-200
Published
Advisory Summary

CVE-2023-1584 is a HIGH (CVSS 7.5) quarkus oidc can leak both vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Quarkus oidc libraries in the Maven ecosystem. The issue involves quarkus oidc can leak both id and access tokens. Remediation is available by upgrading affected packages to version 2.13.0.Final, 3.1.0.Final.

CVE-2023-1584 at a Glance

CVE Identifier CVE-2023-1584
GHSA Identifier GHSA-6hc9-cf8x-hf83
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Quarkus oidc
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.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:H/I:N/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-1584

To remediate this vulnerability, upgrade all affected Quarkus oidc 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-oidc fixed: 2.13.0.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-oidc</artifactId>
    <version>2.13.0.Final</version>
</dependency>
io.quarkus:quarkus-oidc fixed: 3.1.0.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-oidc</artifactId>
    <version>3.1.0.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

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-1584, 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 oidc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.13.0.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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Quarkus oidc, 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. Quarkus OIDC can leak both ID and access tokens in the authorization code flow when an insecure HTTP protocol is used, which can allow attackers to access sensitive user data directly from the ID token or by using the access token to access user data from OIDC provider services. Please note that passwords are not stored in access tokens.

CVE-2023-1584 Affected Quarkus oidc Versions

2 component(s)
Fixed Versions:
2.13.0.Final3.1.0.Final
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus:quarkus-oidc
Maven
< 2.13.0.Final
2.13.0.Final
io.quarkus:quarkus-oidc
Maven
≥ 3.0.0
< 3.1.0.Final
3.1.0.Final

References

Frequently Asked Questions

What is CVE-2023-1584?
CVE-2023-1584 is a security vulnerability in Quarkus oidc involving Quarkus OIDC can leak both ID and access tokens under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Quarkus oidc versions are affected?
Affected versions include releases prior to 2.13.0.Final, 3.1.0.Final across affected packages: io.quarkus:quarkus-oidc.
What version fixes CVE-2023-1584?
Upgrading to 2.13.0.Final, 3.1.0.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is quarkus-oidc affected?
Yes, io.quarkus:quarkus-oidc is affected in releases prior to 2.13.0.Final, 3.1.0.Final. Upgrade your dependency to 2.13.0.Final, 3.1.0.Final or later.
What is the CVSS score of CVE-2023-1584?
CVE-2023-1584 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-1584?
CVE-2023-1584 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2023-1584?
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-6hc9-cf8x-hf83",
  "modified" : "2024-05-03T18:30:35Z",
  "published" : "2023-10-04T12:30:14Z",
  "aliases" : [ "CVE-2023-1584" ],
  "summary" : "Quarkus OIDC can leak both ID and access tokens",
  "details" : "A flaw was found in Quarkus. Quarkus OIDC can leak both ID and access tokens in the authorization code flow when an insecure HTTP protocol is used, which can allow attackers to access sensitive user data directly from the ID token or by using the access token to access user data from OIDC provider services. Please note that passwords are not stored in access tokens.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-oidc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.13.0.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-oidc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.0.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-1584"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/pull/32192"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/pull/32192/commits/5369d7ff233d3afe84ecd9160c541fba52b38e69"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/pull/33414"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/pull/33414/commits/df305ff12386cf28b33567b8d9a18db164f019dd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/5369d7ff233d3afe84ecd9160c541fba52b38e69"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/df305ff12386cf28b33567b8d9a18db164f019dd"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:3809"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7653"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-1584"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2180886"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-04T18:49:34Z",
    "nvd_published_at" : "2023-10-04T11:15:09Z"
  }
}