CVE-2026-40975 Details
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.
A vulnerability exists in the random value property source of Spring Boot, specifically in versions 4.0.0 through 4.0.5, 3.5.0 through 3.5.13, 3.4.0 through 3.4.15, 3.3.0 through 3.3.18, and 2.7.0 through 2.7.32. This vulnerability arises because the random values generated are not suitable for use as secrets, with numeric values having a predictable range being particularly problematic. While ${random.uuid} is not affected, ${random.int} and ${random.long} should never be used for secrets due to their predictability.
Users should upgrade to Spring Boot versions 4.0.6, 3.5.14, 3.4.16 (Enterprise Support Only), 3.3.19 (Enterprise Support Only), or 2.7.33 (Enterprise Support Only).
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:17668 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:21772 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:22619 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:25089 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-40975 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2463331 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40975.json | redhat-SADP | |
| https://spring.io/security/cve-2026-40975 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-330 | Use of Insufficiently Random Values | [email protected] |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | redhat-SADP |
Affected Products
| Product | Versions |
|---|---|
| vmware 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 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 30, 2026 | Initial Analysis | [email protected] |
| Apr 28, 2026 | New CVE Received | [email protected] |