Vulnerabilities in pkg:maven/org.springframework.vault/spring-vault-core
PACKAGECVE-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.
pkg:maven/org.springframework.vault/spring-vault-core
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
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).
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.
<dependency>
<groupId>org.springframework.vault</groupId>
<artifactId>spring-vault-core</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework.vault</groupId>
<artifactId>spring-vault-core</artifactId>
<version>2.3.3</version>
</dependency>
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
CVE-2023-20859 Affected Spring Framework Versions
2 component(s)| 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?
Which Spring Framework versions are affected?
What version fixes CVE-2023-20859?
Is spring-vault-core affected?
What is the CVSS score of CVE-2023-20859?
What CWE is associated with CVE-2023-20859?
How can I check Maven dependencies for CVE-2023-20859?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}