CVE-2026-40975: Values produced by ${random.value} are not suitable for use as secrets
CVE-2026-40975 is a medium-severity flaw (CVSS 4.8) affecting spring boot. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-07-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40975?
spring boot: upgrade to 2.7.33, 3.3.19, 3.4.16, 3.5.14, 4.0.6. Exact commands for each OS are on this page.
Is CVE-2026-40975 being exploited?
CVE-2026-40975 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40975 affect?
CVE-2026-40975 affects spring boot. Severity is medium (CVSS 4.8). 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
How urgent is CVE-2026-40975?
Priority 28/100. Remotely exploitable, no login, no user action
Software pages
Spring Framework vulnerabilities · VMware vulnerabilities
Related CVEs
- CVE-2026-40970 MEDIUM 5.0 UPGRADE When configured to use an SSL bundle, Spring Boot's Elasticsearch auto-configuration does not perform hostname
- CVE-2026-41001 MEDIUM 5.3 UPGRADE Spring Boot's ArtemisEmbeddedConfigurationFactory uses a fixed, static path for the embedded Artemis message b
- CVE-2026-40992 MEDIUM 5.0 UPGRADE Spring Boot's Mail auto-configuration does not enable hostname verification
- CVE-2026-40976 CRITICAL 9.1 UPGRADE In certain circumstances, Spring Boot's default web security is ineffective allowing unauthorized access to al
- CVE-2026-40972 HIGH 7.5 UPGRADE An attacker on the same network as the remote application may be able to utilize a timing attack to discover i