CVE-2023-5720: Quarkus project Quarkus Does Not Properly Sanitize Vulnerability

HIGH
Advisory Identifier: GHSA-p62q-5483-h57v
CVSS 7.7
CWE-526
Published
Advisory Summary

CVE-2023-5720 is a HIGH (CVSS 7.7) quarkus does not properly sanitize vulnerability (CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable) affecting Quarkus project libraries in the Maven ecosystem. The issue involves quarkus does not properly sanitize artifacts created from its use of the gradle plugin, allowing certain build system information to remain. Remediation is available in the latest vendor maintenance releases.

CVE-2023-5720 at a Glance

CVE Identifier CVE-2023-5720
GHSA Identifier GHSA-p62q-5483-h57v
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable
Affected Product Quarkus project
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-5720

To remediate this vulnerability, upgrade all affected Quarkus project 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-project fixed: Latest secure release
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-project</artifactId>
    <version>Latest secure release</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-5720, 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 project in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 project, 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, where it does not properly sanitize artifacts created using the Gradle plugin, allowing certain build system information to remain. This flaw allows an attacker to access potentially sensitive information from the build system within the application.

CVE-2023-5720 Affected Quarkus project Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus:quarkus-project
Maven
≥ 3.0.0.CR1
≤ 3.5.1

References

Frequently Asked Questions

What is CVE-2023-5720?
CVE-2023-5720 is a security vulnerability in Quarkus project involving Quarkus does not properly sanitize artifacts created from its use of the Gradle plugin, allowing certain build system information to remain under CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable.
Which Quarkus project versions are affected?
Affected versions include releases prior to current release patches across affected packages: io.quarkus:quarkus-project.
What version fixes CVE-2023-5720?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is quarkus-project affected?
Yes, io.quarkus:quarkus-project is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-5720?
CVE-2023-5720 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2023-5720?
CVE-2023-5720 is classified under CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable (The product uses an environment variable to store unencrypted sensitive information.).
How can I check Maven dependencies for CVE-2023-5720?
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-p62q-5483-h57v",
  "modified" : "2023-11-15T17:54:00Z",
  "published" : "2023-11-15T15:30:21Z",
  "aliases" : [ "CVE-2023-5720" ],
  "summary" : "Quarkus does not properly sanitize artifacts created from its use of the Gradle plugin, allowing certain build system information to remain",
  "details" : "A flaw was found in Quarkus, where it does not properly sanitize artifacts created using the Gradle plugin, allowing certain build system information to remain. This flaw allows an attacker to access potentially sensitive information from the build system within the application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-project"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0.CR1"
      }, {
        "last_affected" : "3.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5720"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-5720"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2245700"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-526" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-15T17:54:00Z",
    "nvd_published_at" : "2023-11-15T14:15:07Z"
  }
}