{"id":"CVE-2026-40975","published":"2026-04-27T23:32:58Z","modified":"2026-07-15T01:00:19Z","title":"Values produced by ${random.value} are not suitable for use as secrets","vendor":"Spring","product":"Spring Boot","tier":"tail","description":{"text":"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.\n\nAffected: 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00312,"percentile":0.24773,"provenance":"source"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://spring.io/security/cve-2026-40975","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40975","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463331","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40975.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25089","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22619","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17668","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":4.95},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Boot","versions":[">= 4.0.0, < 4.0.6",">= 3.5.0, < 3.5.14",">= 3.4.0, < 3.4.16",">= 3.3.0, < 3.3.19",">= 2.7.0, < 2.7.33"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-28T13:51:27.326869Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.boot:spring-boot-cassandra","vulnerableRanges":[">=4.0.0, <4.0.6",">=3.5.0, <3.5.14",">=3.4.0, <=3.4.15",">=3.3.0, <=3.3.18","<=2.7.32"],"patched":["4.0.6","3.5.14"],"from":["GHSA-m4x9-hx6x-2c43"],"provenance":"source"}],"summary":{"text":"Spring Boot's random value property source (the ${random.value} placeholder) produces values that are not cryptographically random, so they should not be used as secrets, while ${random.uuid} is unaffected. An attacker with network access can exploit this by predicting such values, and the attack is considered high complexity and requires no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:52Z"},"euvd":{"id":"EUVD-2026-25939","exploited":false,"provenance":"source"}}