CVE-2026-40975
Spring Boot's random value property source uses a weak PRNG unsuitable for secrets
Description
Values produced by ${random.value} are not suitable for use as secrets. ${random.uuid} is not affected. ${random.int} and ${random.long} should never be used for secrets as they are numeric values with a predictable range.
Affected: Spring Boot 4.0.0–4.0.5 (fix 4.0.6), 3.5.0–3.5.13 (fix 3.5.14), 3.4.0–3.4.15 (fix 3.4.16), 3.3.0–3.3.18 (fix 3.3.19), 2.7.0–2.7.32 (fix 2.7.33); random value property source / weak PRNG for secrets. Versions that are no longer supported are also affected per vendor advisory.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.boot » spring-boot-cassandra | <= 2.7.32>= 3.3.0, <= 3.3.18>= 3.4.0, <= 3.4.15>= 3.5.0, < 3.5.14>= 4.0.0, < 4.0.6 | 3.5.14, 4.0.6 |
Blast radius
18% of the dependent artifacts (4) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 30 |
| 2 hops | 55 |
| 3 hops | 18 |
| 4 hops | 6 |
Most used dependents
- org.springframework.boot » spring-boot-starter-data-cassandra30 usages
- org.springframework.boot » spring-boot-starter-test-classic20 usages
- org.springframework.boot » spring-boot-starter-data-cassandra-reactive12 usages
- org.springframework.boot » spring-boot-starter-cassandra9 usages
- org.springframework.boot » spring-boot-data-cassandra5 usages
- org.springframework.boot » spring-boot-starter-classic4 usages
- org.springframework.boot » spring-boot-data-cassandra-test3 usages
- org.springframework.boot » spring-boot-autoconfigure-classic2 usages
- org.springframework.boot » spring-boot-starter-cassandra-test2 usages
- org.springframework.cloud.fn » spring-cassandra-consumer2 usages
- org.springframework.boot » spring-boot-autoconfigure-classic-modules1 usages
- org.springframework.boot » spring-boot-test-classic-modules1 usages
- org.springframework.ai » spring-ai-autoconfigure-model-chat-memory-repository-cassandra1 usages
- org.springframework.ai » spring-ai-autoconfigure-vector-store-cassandra1 usages
- org.jwcarman.substrate » substrate-cassandra0 usages
Computed from the dependency graph of build 20261128.0605 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-40975 | nvd.nist.gov |
| Package | spring-projects/spring-boot | github.com |
| Web | security/cve-2026-40975 | spring.io |
