CVE-2026-40975: spring spring boot Use of Insufficiently Random Values
Vulnerability summary
CVE-2026-40975 is a high (CVSS 7.5) Use of Insufficiently Random Values vulnerability in spring spring boot. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 34% of scored vulnerabilities.
Timeline
- 27-04-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NDiffers
- OSV · MavenEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.41%
Chance of exploitation in the next 30 days
Percentile
34%
Versus all other CVEs
30-day change
+0.10 pp
From 0.31% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-330Use of Insufficiently Random ValuesThe product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.
- CWE-338Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.
Affected systems
Org.springframework.boot1 product
- spring-boot-cassandra≥ 4.0.0, < 4.0.6 | ≥ 3.5.0, < 3.5.14 | ≥ 3.4.0, ≤ 3.4.15 | ≥ 3.3.0, ≤ 3.3.18 | ≤ 2.7.32
Spring1 product
- spring boot≥ 4.0.0, < 4.0.6 | ≥ 3.5.0, < 3.5.14 | ≥ 3.4.0, < 3.4.16 | ≥ 3.3.0, < 3.3.19 | ≥ 2.7.0, < 2.7.33
Vmware1 product
- spring_boot< 2.7.33 | ≥ 3.3.0, < 3.3.19 | ≥ 3.4.0, < 3.4.16 | ≥ 3.5.0, < 3.5.14 | ≥ 4.0.0, < 4.0.6
3 vendors · 3 products