# CVE-2026-40975: Spring Boot's random value property source uses a weak PRNG unsuitable for secrets

- Severity: Medium 4.8 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-04-27T23:32:58.596Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-m4x9-hx6x-2c43
- Weaknesses: CWE-330, CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Boot: from 4.0.0 before 4.0.6; from 3.5.0 before 3.5.14; from 3.4.0 before 3.4.16; from 3.3.0 before 3.3.19; from 2.7.0 before 2.7.33
- spring-boot: no versions given
- devspaces/openvsx-rhel9: no versions given (not affected: from 1779528224 before *)
- devspaces/pluginregistry-rhel9: no versions given (not affected: from 1779359423 before *)
- log4j:2/log4j: no versions given
- log4j: no versions given
- org.springframework.boot:spring-boot-cassandra (Maven): from 4.0.0 before 4.0.6; from 3.5.0 before 3.5.14; from 3.4.0 up to 3.4.15; from 3.3.0 up to 3.3.18; up to 2.7.32
- vmware spring_boot: before 2.7.33; from 3.3.0 before 3.3.19; from 3.4.0 before 3.4.16; from 3.5.0 before 3.5.14; from 4.0.0 before 4.0.6

## Every score

- vmware: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- redhat-SADP: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://spring.io/security/cve-2026-40975> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-40975> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2463331> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40975.json>
- <https://access.redhat.com/errata/RHSA-2026:25089> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:22619> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:21772> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:17668> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40975> (advisory)
- <https://github.com/spring-projects/spring-boot> (package)

## Sources

- CVE List: [CVE-2026-40975](https://www.cve.org/CVERecord?id=CVE-2026-40975), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-m4x9-hx6x-2c43](https://github.com/advisories/GHSA-m4x9-hx6x-2c43), CC-BY-4.0, modified 2026-05-06
- NVD: [CVE-2026-40975](https://nvd.nist.gov/vuln/detail/CVE-2026-40975), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-40975 · Whole record: https://cve.day/CVE-2026-40975.json · Rebuilt by cve.day 2026-11-25T22:59:19.811Z
