Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in spring-boot - CVE-2026-40975

 

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in spring-boot - CVE-2026-40975

Published: April 27, 2026


Vulnerability identifier: #VU128234
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-40975
CWE-ID: CWE-338
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information and compromise integrity of secret-dependent operations.

The vulnerability exists due to the use of a weak pseudorandom number generator in the random value property source when generating values with ${random.value}. A remote attacker can predict generated values to disclose sensitive information and compromise integrity of secret-dependent operations.

${random.uuid} is not affected, and ${random.int} and ${random.long} should never be used for secrets because they are numeric values with a predictable range.


Affected software

spring-boot
Db2 Developer Extension
webMethods developer portal
webMethods ControlPlane
MongoDB Enterprise Advanced with IBM
Library Support for Spring
IBM Sterling Control Center
IBM InfoSphere Information Server
JBoss Data Grid

How to mitigate CVE-2026-40975

Install security update from vendor's website.

spring-boot - addressed in versions 2.7.33, 3.3.19, 3.4.16, 3.5.14, 4.0.6
Db2 Developer Extension - update to 1.1.2
Library Support for Spring - update to 3.4.18
IBM Sterling Control Center - addressed in versions 6.3.1.0.9, 6.4.1.0.3, 6.4.2.0.4
webMethods developer portal - update to 11.1 Fix14
webMethods ControlPlane - update to 11.1 Fix11
IBM InfoSphere Information Server - update to 11.7.1.6 Service pack 3
MongoDB Enterprise Advanced with IBM - update to 1.16.0
JBoss Data Grid - update to 8.6.1

External References

Related Security Bulletins