CVE-2026-40975
Spring Boot: Spring Boot: Weak pseudo-random number generation can lead to information disclosure.
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 28, 2026
Updated · November 5, 2026
Description
A flaw was found in Spring Boot. The ${random.value} property source utilizes a weak pseudo-random number generator (PRNG), meaning the values it produces are not sufficiently random for use as cryptographic secrets. An attacker could potentially predict these values, which may lead to information disclosure or a security bypass if they are used in sensitive applications.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Applications utilizing Spring Boot should avoid using the ${random.value} property for generating cryptographic secrets or other security-sensitive data. Developers should review their application configurations and code to ensure that only cryptographically strong random number generators are used for such purposes. For UUID generation, ${random.uuid} is not affected and can be used.
CVSS / CWE
CVSS 3.1 · 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)