Vulnerabilities in pkg:maven/org.springframework.vault/spring-vault-core

PACKAGE
Advisory Identifier: GHSA-r47r-87p9-8jh3
Advisory Summary

CVE-2023-20859 is a MODERATE (CVSS 5.5) spring vault vulnerable to insertion vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring vault vulnerable to insertion of sensitive information into a log file. Remediation is available by upgrading affected packages to version 3.0.2, 2.3.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springframework.vault/spring-vault-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.springframework.vault/spring-vault-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r47r-87p9-8jh3 CVE-2023-20859 MODERATE Spring Vault vulnerable to insertion of sensitive information into a log file

CVE-2023-20859 at a Glance

CVE Identifier CVE-2023-20859
GHSA Identifier GHSA-r47r-87p9-8jh3
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-20859

To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.springframework.vault:spring-vault-core fixed: 3.0.2
<dependency>
    <groupId>org.springframework.vault</groupId>
    <artifactId>spring-vault-core</artifactId>
    <version>3.0.2</version>
</dependency>
org.springframework.vault:spring-vault-core fixed: 2.3.3
<dependency>
    <groupId>org.springframework.vault</groupId>
    <artifactId>spring-vault-core</artifactId>
    <version>2.3.3</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=org.springframework.vault

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-20859, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.springframework.vault

Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework.vault 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Spring Framework, 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

In Spring Vault, versions 3.0.x prior to 3.0.2 and versions 2.3.x prior to 2.3.3 and older versions, an application is vulnerable to insertion of sensitive information into a log file when it attempts to revoke a Vault batch token.

CVE-2023-20859 Affected Spring Framework Versions

2 component(s)
Fixed Versions:
3.0.22.3.3
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.vault:spring-vault-core
Maven
≥ 3.0.0
< 3.0.2
3.0.2
org.springframework.vault:spring-vault-core
Maven
< 2.3.3
2.3.3

References

Frequently Asked Questions

What is CVE-2023-20859?
CVE-2023-20859 is a security vulnerability in Spring Framework involving Spring Vault vulnerable to insertion of sensitive information into a log file under CWE-532: Insertion of Sensitive Information into Log File.
Which Spring Framework versions are affected?
Affected versions include releases prior to 3.0.2, 2.3.3 across affected packages: org.springframework.vault:spring-vault-core.
What version fixes CVE-2023-20859?
Upgrading to 3.0.2, 2.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-vault-core affected?
Yes, org.springframework.vault:spring-vault-core is affected in releases prior to 3.0.2, 2.3.3. Upgrade your dependency to 3.0.2, 2.3.3 or later.
What is the CVSS score of CVE-2023-20859?
CVE-2023-20859 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-20859?
CVE-2023-20859 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Maven dependencies for CVE-2023-20859?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.vault'. 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-r47r-87p9-8jh3",
  "modified" : "2023-03-28T18:05:35Z",
  "published" : "2023-03-23T21:30:19Z",
  "aliases" : [ "CVE-2023-20859" ],
  "summary" : "Spring Vault vulnerable to insertion of sensitive information into a log file",
  "details" : "In Spring Vault, versions 3.0.x prior to 3.0.2 and versions 2.3.x prior to 2.3.3 and older versions, an application is vulnerable to insertion of sensitive information into a log file when it attempts to revoke a Vault batch token.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.vault:spring-vault-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.vault:spring-vault-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-20859"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spring-projects/spring-vault"
  }, {
    "type" : "WEB",
    "url" : "https://spring.io/security/cve-2023-20859"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-23T23:11:08Z",
    "nvd_published_at" : "2023-03-23T21:15:00Z"
  }
}