CVE-2019-10755: Cryptographically Weak Pseudo-Random Number Generator in org.pac4j:pac4j-saml

org.pac4j:pac4j-saml Updated 02 Oct 2025

Summary

06/11/2019
Yes i
Moderate
4.9

CVE-2019-10755: Use of Cryptographically Weak Pseudo-Random Number Generator in org.pac4j:pac4j-saml. Affects org.pac4j:pac4j-saml versions < 3.8.2. Fixed in 3.8.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

org.pac4j:pac4j-saml is a Maven package that provides SAML (Security Assertion Markup Language) support for the pac4j library. SAML is an XML-based open standard for exchanging authentication and authorization data between parties. The pac4j-saml package allows developers to integrate SAML-based authentication and authorization into their applications. However, the package is vulnerable to a cryptographically weak pseudo-random number generator (PRNG) issue.

Vulnerability Detail

The SAML identifier generated within SAML2Utils.java in the pac4j-saml package uses the apache commons-lang3 RandomStringUtils class, which has a PRNG algorithm that is not cryptographically strong. This makes the generated SAML identifiers predictable. An attacker could exploit this vulnerability to guess or manipulate SAML identifiers, potentially leading to unauthorized access or privilege escalation. It is important to note that this vulnerability only affects the 3.X release of pac4j-saml.

How To Fix

Minimum fixed version

3.8.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of the pac4j-saml package.

Conclusion

The pac4j-saml package is vulnerable to a cryptographically weak PRNG issue in the generation of SAML identifiers. This vulnerability can be mitigated by upgrading to version 3.8.2 or later of the package. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.pac4j:pac4j-saml →

Share this vulnerability

FAQ

This vulnerability could allow an attacker to guess or manipulate SAML identifiers, potentially leading to unauthorized access or privilege escalation.

Only the 3.X release of the pac4j-saml package is affected by this vulnerability.

There are no known exploits for this vulnerability at the time of this advisory.

Yes, developers can fix this vulnerability by upgrading to version 3.8.2 or later of the pac4j-saml package.

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of the pac4j-saml package.

How To Fix

Minimum fixed version

3.8.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback