Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting org.springframework.boot:spring-boot package, versions [,3.5.14)[4.0.0-M1,4.0.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKBOOT-16191649
  • published24 Apr 2026
  • disclosed23 Apr 2026
  • creditUnknown

Introduced: 23 Apr 2026

CVE-2026-40975  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

Upgrade org.springframework.boot:spring-boot to version 3.5.14, 4.0.6 or higher.

Overview

Affected versions of this package are vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) for the property source for ${random.value} (as well as ${random.int} and ${random.long}). Standard PRNGs (like java.util.Random) use deterministic mathematical algorithms starting from a seed value. Because the state space is relatively small and lacks ongoing entropy (true randomness), an attacker who observes a sequence of generated values can mathematically reverse-engineer the seed. Once the seed is known, the attacker can predict all past and future values generated by that PRNG. If these values are used to generate security-sensitive assets like API keys, session tokens, or passwords, the system becomes compromised.

CVSS Base Scores

version 4.0
version 3.1