CVE-2019-10755: Pac4j saml Pac4j-saml Vulnerability

MODERATE
Advisory Identifier: GHSA-rc75-cf5c-mxvh
CVSS 4.9
CWE-338
Published
Advisory Summary

CVE-2019-10755 is a MODERATE (CVSS 4.9) pac4j-saml vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Pac4j saml libraries in the Maven ecosystem. The issue involves pac4j-saml. Remediation is available by upgrading affected packages to version 3.8.2.

CVE-2019-10755 at a Glance

CVE Identifier CVE-2019-10755
GHSA Identifier GHSA-rc75-cf5c-mxvh
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Pac4j saml
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.9

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
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-2019-10755

To remediate this vulnerability, upgrade all affected Pac4j saml 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.pac4j:pac4j-saml fixed: 3.8.2
<dependency>
    <groupId>org.pac4j</groupId>
    <artifactId>pac4j-saml</artifactId>
    <version>3.8.2</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.pac4j

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.pac4j

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

Note: The mvn dependency:tree -Dincludes=org.pac4j 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 Pac4j saml, 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

The SAML identifier generated within SAML2Utils.java was found to make use of the apache commons-lang3 RandomStringUtils class which makes them predictable due to RandomStringUtils PRNG's algorithm not being cryptographically strong. This issue only affects the 3.X release of pac4j-saml.

CVE-2019-10755 Affected Pac4j saml Versions

1 component(s)
Fixed Versions:
3.8.2
Product / Package Ecosystem Affected Versions Fixed Version
org.pac4j:pac4j-saml
Maven
< 3.8.2
3.8.2

References

Frequently Asked Questions

What is CVE-2019-10755?
CVE-2019-10755 is a security vulnerability in Pac4j saml involving pac4j-saml under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Pac4j saml versions are affected?
Affected versions include releases prior to 3.8.2 across affected packages: org.pac4j:pac4j-saml.
What version fixes CVE-2019-10755?
Upgrading to 3.8.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pac4j-saml affected?
Yes, org.pac4j:pac4j-saml is affected in releases prior to 3.8.2. Upgrade your dependency to 3.8.2 or later.
What is the CVSS score of CVE-2019-10755?
CVE-2019-10755 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-10755?
CVE-2019-10755 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-2019-10755?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.pac4j'. 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-rc75-cf5c-mxvh",
  "modified" : "2021-08-18T22:08:17Z",
  "published" : "2019-11-06T17:06:28Z",
  "aliases" : [ "CVE-2019-10755" ],
  "summary" : "Use of Cryptographically Weak Pseudo-Random Number Generator in org.pac4j:pac4j-saml",
  "details" : "The SAML identifier generated within SAML2Utils.java was found to make use of the apache commons-lang3 RandomStringUtils class which makes them predictable due to RandomStringUtils PRNG's algorithm not being cryptographically strong. This issue only affects the 3.X release of pac4j-saml.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.pac4j:pac4j-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10755"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pac4j/pac4j/commit/34d5b1028a2db201ee81ec51b52a782fe073f609"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGPAC4J-467407"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-338" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-11-05T19:56:04Z",
    "nvd_published_at" : "2019-09-23T23:15:00Z"
  }
}