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

Medium 4.8 Published Updated

Developers using Spring Boot random value properties for secrets risk exposure due to predictable PRNG output, requiring upgrades to secure versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-40975?

CVE-2026-40975 is a medium-severity vulnerability in Spring Boot, published on 27 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-338, CWE-330

Which versions are affected by CVE-2026-40975?

10 open source packages ship an affected version, including org.springframework.boot:spring-boot-cassandra. It affects 1 product.

PackageAffectedFixed in
org.springframework.boot:spring-boot-cassandra MavenAll versions to 2.7.32None
org.springframework.boot:spring-boot-cassandra MavenAll versions to 2.7.32None
org.springframework.boot:spring-boot-cassandra MavenFrom 3.3.0 to 3.3.18None
org.springframework.boot:spring-boot-cassandra MavenFrom 3.3.0 to 3.3.18None
org.springframework.boot:spring-boot-cassandra MavenFrom 3.4.0 to 3.4.15None
org.springframework.boot:spring-boot-cassandra MavenFrom 3.4.0 to 3.4.15None
4 more packages
org.springframework.boot:spring-boot-cassandra MavenFrom 3.5.03.5.14
org.springframework.boot:spring-boot-cassandra MavenFrom 3.5.03.5.14
org.springframework.boot:spring-boot-cassandra MavenFrom 4.0.04.0.6
org.springframework.boot:spring-boot-cassandra MavenFrom 4.0.04.0.6

Products include Vmware Spring Boot.

How do I fix CVE-2026-40975?

Upgrade org.springframework.boot:spring-boot-cassandra to a fixed version for your release line: 3.5.14 or 4.0.6.

Is CVE-2026-40975 being exploited?

There is no known exploitation of CVE-2026-40975 in the wild and no public exploit code.

Sources

Also known as GHSA-m4x9-hx6x-2c43.

Is CVE-2026-40975 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free