Skip to content
4.8 Medium

CVE-2026-40975 Values produced by ${random.value} are not suitable for use as secrets

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.

Affected products and versions

Product Affected versions Fixed in
Spring Boot 4.0 4.0.0 → < 4.0.6 4.0.6
Spring Boot 3.5 3.5.0 → < 3.5.14 3.5.14
Spring Boot 3.4 3.4.0 → < 3.4.16 3.4.16
Spring Boot 3.3 3.3.0 → < 3.3.19 3.3.19
Spring Boot 2.7 2.7.0 → < 2.7.33 2.7.33
HawtIO HawtIO 4.4.0 Versions not published
Red Hat Data Grid 8.6.1 Versions not published
Red Hat OpenShift Dev Spaces 3.28 1779359423 earliest → < 1779359423 1779359423
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14 Versions not published
Show the 11 other branches
Product Affected versions Fixed in
Red Hat AMQ Clients Versions not published
Red Hat build of OptaPlanner 8 Versions not published
Red Hat Fuse 7 Versions not published
Red Hat AMQ Broker 7 Versions not published
Red Hat Enterprise Linux 8 Versions not published
Red Hat Enterprise Linux 9 Versions not published
Red Hat JBoss Enterprise Application Platform 7 Versions not published
Red Hat JBoss Enterprise Application Platform 8 Versions not published
Red Hat JBoss Enterprise Application Platform Expansion Pack Versions not published
Red Hat Process Automation 7 Versions not published
Red Hat Single Sign-On 7 Versions not published

References

Timeline

  1. Published
  2. Last modified
The 15 CVEs of Spring Boot →
Track this CVE