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

PACKAGE
Advisory Identifier: GHSA-q3jg-4c82-j4xh
Advisory Summary

CVE-2018-15795 is a HIGH (CVSS 8.1) use of cryptographically weak pseudo-random vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Spring Framework libraries in the Maven ecosystem. The issue involves use of cryptographically weak pseudo-random number generator (prng) in pivotal credhub service broker. Remediation is available by upgrading affected packages to version 1.1.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

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

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-q3jg-4c82-j4xh CVE-2018-15795 HIGH Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Pivotal CredHub Service Broker

CVE-2018-15795 at a Glance

CVE Identifier CVE-2018-15795
GHSA Identifier GHSA-q3jg-4c82-j4xh
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

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

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

How to Fix CVE-2018-15795

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.credhub:spring-credhub-core fixed: 1.1.0
<dependency>
    <groupId>org.springframework.credhub</groupId>
    <artifactId>spring-credhub-core</artifactId>
    <version>1.1.0</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.credhub

How to Check if You Are Affected

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

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

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 1.1.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework.credhub 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-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. 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

Pivotal CredHub Service Broker, versions prior to 1.1.0, uses a guessable form of random number generation in creating service broker's UAA client. A remote malicious user may guess the client secret and obtain or modify credentials for users of the CredHub Service.

CVE-2018-15795 Affected Spring Framework Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.credhub:spring-credhub-core
Maven
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is CVE-2018-15795?
CVE-2018-15795 is a security vulnerability in Spring Framework involving Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Pivotal CredHub Service Broker under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Spring Framework versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: org.springframework.credhub:spring-credhub-core.
What version fixes CVE-2018-15795?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-credhub-core affected?
Yes, org.springframework.credhub:spring-credhub-core is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of CVE-2018-15795?
CVE-2018-15795 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2018-15795?
CVE-2018-15795 is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.).
How can I check Maven dependencies for CVE-2018-15795?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.credhub'. 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-q3jg-4c82-j4xh",
  "modified" : "2022-09-14T22:09:19Z",
  "published" : "2018-11-29T21:30:30Z",
  "aliases" : [ "CVE-2018-15795" ],
  "summary" : "Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Pivotal CredHub Service Broker",
  "details" : "Pivotal CredHub Service Broker, versions prior to 1.1.0, uses a guessable form of random number generation in creating service broker's UAA client. A remote malicious user may guess the client secret and obtain or modify credentials for users of the CredHub Service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.credhub:spring-credhub-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-15795"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-q3jg-4c82-j4xh"
  }, {
    "type" : "WEB",
    "url" : "https://pivotal.io/security/cve-2018-15795"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/105915"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-338" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:50:43Z",
    "nvd_published_at" : null
  }
}