CVE-2026-40975: CWE-330: Use of Insufficiently Random Values in Spring Spring Boot
CVE-2026-40975 is a medium severity vulnerability in Spring Boot where certain random value generators (${random.value}, ${random.int}, ${random.long}) produce insufficiently random values unsuitable for use as secrets. The ${random.uuid} generator is not affected. This weakness can lead to predictable secret values. Multiple Spring Boot versions from 2.7.0 through 4.
AI Analysis
Technical Summary
This vulnerability involves the use of weak pseudorandom number generators in Spring Boot's random value property source. Specifically, the values produced by ${random.value}, ${random.int}, and ${random.long} are insufficiently random and thus unsuitable for generating secrets, potentially compromising confidentiality. The ${random.uuid} generator remains secure. Affected versions include Spring Boot 2.7.0 to 2.7.32, 3.3.0 to 3.3.18, 3.4.0 to 3.4.15, 3.5.0 to 3.5.13, and 4.0.0 to 4.0.5. Vendor advisories indicate fixes were introduced in versions 2.7.33, 3.3.19, 3.4.16, 3.5.14, and 4.0.6. The CVSS v3.1 base score is 4.8, reflecting a medium severity with network attack vector, high attack complexity, no privileges required, no user interaction, and limited confidentiality and integrity impacts.
Potential Impact
The vulnerability can lead to the generation of predictable secret values when using certain random generators in Spring Boot, potentially allowing attackers to guess or reproduce secrets. This may result in limited confidentiality and integrity impacts. There are no reported exploits in the wild, and the attack complexity is high, reducing immediate risk. The vulnerability does not affect availability.
Mitigation Recommendations
Upgrading to the fixed versions of Spring Boot is recommended: 2.7.33, 3.3.19, 3.4.16, 3.5.14, or 4.0.6 and later. Avoid using ${random.value}, ${random.int}, and ${random.long} for secret generation. Instead, use ${random.uuid} or other secure random generators. Patch status is not explicitly stated in the vendor advisory field, but fixed versions are identified. Therefore, apply the official fixes by upgrading to the specified versions to mitigate this vulnerability.
CVE-2026-40975: CWE-330: Use of Insufficiently Random Values in Spring Spring Boot
Description
CVE-2026-40975 is a medium severity vulnerability in Spring Boot where certain random value generators (${random.value}, ${random.int}, ${random.long}) produce insufficiently random values unsuitable for use as secrets. The ${random.uuid} generator is not affected. This weakness can lead to predictable secret values. Multiple Spring Boot versions from 2.7.0 through 4.
CVSS v3.1
Score 4.8medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves the use of weak pseudorandom number generators in Spring Boot's random value property source. Specifically, the values produced by ${random.value}, ${random.int}, and ${random.long} are insufficiently random and thus unsuitable for generating secrets, potentially compromising confidentiality. The ${random.uuid} generator remains secure. Affected versions include Spring Boot 2.7.0 to 2.7.32, 3.3.0 to 3.3.18, 3.4.0 to 3.4.15, 3.5.0 to 3.5.13, and 4.0.0 to 4.0.5. Vendor advisories indicate fixes were introduced in versions 2.7.33, 3.3.19, 3.4.16, 3.5.14, and 4.0.6. The CVSS v3.1 base score is 4.8, reflecting a medium severity with network attack vector, high attack complexity, no privileges required, no user interaction, and limited confidentiality and integrity impacts.
Potential Impact
The vulnerability can lead to the generation of predictable secret values when using certain random generators in Spring Boot, potentially allowing attackers to guess or reproduce secrets. This may result in limited confidentiality and integrity impacts. There are no reported exploits in the wild, and the attack complexity is high, reducing immediate risk. The vulnerability does not affect availability.
Mitigation Recommendations
Upgrading to the fixed versions of Spring Boot is recommended: 2.7.33, 3.3.19, 3.4.16, 3.5.14, or 4.0.6 and later. Avoid using ${random.value}, ${random.int}, and ${random.long} for secret generation. Instead, use ${random.uuid} or other secure random generators. Patch status is not explicitly stated in the vendor advisory field, but fixed versions are identified. Therefore, apply the official fixes by upgrading to the specified versions to mitigate this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-16T02:19:04.616Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f0134ecbff5d861057a5ce
Added to database: 4/28/2026, 1:54:22 AM
Last enriched: 5/5/2026, 7:33:32 AM
Last updated: 6/12/2026, 5:20:02 AM
Views: 149
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.