CVE-2019-10755: Pac4j saml Pac4j-saml Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.pac4j</groupId>
<artifactId>pac4j-saml</artifactId>
<version>3.8.2</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.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
CVE-2019-10755 Affected Pac4j saml Versions
1 component(s)| 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?
Which Pac4j saml versions are affected?
What version fixes CVE-2019-10755?
Is pac4j-saml affected?
What is the CVSS score of CVE-2019-10755?
What CWE is associated with CVE-2019-10755?
How can I check Maven dependencies for CVE-2019-10755?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}