CVE-2019-3802: Spring Framework Improper Neutralization Of Wildcards Or Vulnerability

MODERATE
Advisory Identifier: GHSA-xggx-fx6w-v7ch
CVSS 5.3
CWE-200 CWE-155
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-3802
GHSA Identifier GHSA-xggx-fx6w-v7ch
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

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).

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 Low (C:L)
Integrity None (I:N)
Availability None (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.

org.springframework.data:spring-data-jpa fixed: 2.1.8
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>2.1.8</version>
</dependency>
org.springframework.data:spring-data-jpa fixed: 2.1.8
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>2.1.8</version>
</dependency>
org.springframework.data:spring-data-jpa fixed: 1.11.22
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>1.11.22</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.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

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.

CVE-2019-3802 Affected Spring Framework Versions

3 component(s)
Fixed Versions:
2.1.81.11.22
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?
CVE-2019-3802 is a security vulnerability in Spring Framework involving Improper Neutralization of Wildcards or Matching Symbols under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Spring Framework versions are affected?
Affected versions include releases prior to 2.1.8, 1.11.22 across affected packages: org.springframework.data:spring-data-jpa.
What version fixes CVE-2019-3802?
Upgrading to 2.1.8, 1.11.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-data-jpa affected?
Yes, org.springframework.data:spring-data-jpa is affected in releases prior to 2.1.8, 1.11.22. Upgrade your dependency to 2.1.8, 1.11.22 or later.
What is the CVSS score of CVE-2019-3802?
CVE-2019-3802 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2019-3802?
CVE-2019-3802 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-2019-3802?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.data'. 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-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"
  }
}