CVE-2019-3802: Spring Framework Improper Neutralization Of Wildcards Or Vulnerability
MODERATECVE-2019-3802 is a MODERATE (CVSS 5.3) improper neutralization of wildcards or vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Spring Framework libraries in the Maven ecosystem. The issue involves improper neutralization of wildcards or matching symbols. Remediation is available by upgrading affected packages to version 2.1.8, 1.11.22.
CVE-2019-3802 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2019-3802
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.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>2.1.8</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>2.1.8</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>1.11.22</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.data
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-3802, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.data
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 2.1.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.data 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 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-2019-3802 Affected Spring Framework Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.data:spring-data-jpa
|
Maven |
≥ 2.1.0
< 2.1.8
|
2.1.8
|
|
org.springframework.data:spring-data-jpa
|
Maven |
≥ 2.0.0
< 2.1.8
|
2.1.8
|
|
org.springframework.data:spring-data-jpa
|
Maven |
< 1.11.22
|
1.11.22
|
References
Frequently Asked Questions
What is CVE-2019-3802?
Which Spring Framework versions are affected?
What version fixes CVE-2019-3802?
Is spring-data-jpa affected?
What is the CVSS score of CVE-2019-3802?
What CWE is associated with CVE-2019-3802?
How can I check Maven dependencies for CVE-2019-3802?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xggx-fx6w-v7ch",
"modified" : "2021-08-04T20:41:46Z",
"published" : "2019-06-04T15:42:15Z",
"aliases" : [ "CVE-2019-3802" ],
"summary" : "Improper Neutralization of Wildcards or Matching Symbols",
"details" : "This affects Spring Data JPA in versions up to and including 2.1.6, 2.0.14 and 1.11.20. ExampleMatcher using ExampleMatcher.StringMatcher.STARTING, ExampleMatcher.StringMatcher.ENDING or ExampleMatcher.StringMatcher.CONTAINING could return more results than anticipated when a maliciously crafted example value is supplied.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.data:spring-data-jpa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.data:spring-data-jpa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.1.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.14"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.data:spring-data-jpa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.11.22"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3802"
}, {
"type" : "WEB",
"url" : "https://pivotal.io/security/cve-2019-3802"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-155", "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-04T15:38:52Z",
"nvd_published_at" : "2019-06-03T14:29:00Z"
}
}