What’s Vulnerable › Vulnerabilities
CVE-2019-3795: Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2019-04-09 · updated 2026-06-17
- Weakness: CWE-330
Description
Spring Security versions 4.2.x prior to 4.2.12, 5.0.x prior to 5.0.12, and 5.1.x prior to 5.1.5 contain an insecure randomness vulnerability when using SecureRandomFactoryBean#setSeed to configure a SecureRandom instance. In order to be impacted, an honest application must provide a seed and make the resulting random material available to an attacker for inspection.
Affected products
- Debian Linux: 8.0
- Spring Security: from 4.2.0 before 4.2.12; from 5.0.0 before 5.0.12; from 5.1.0 before 5.1.5 — fixed in 4.2.12, 5.0.12, 5.1.5
- Spring Security: from 5.0 before 5.0.11.RELEASE; from 5.1 before 5.1.4.RELEASE; from 4.2 before 4.2.11.RELEASE — fixed in 5.0.11.RELEASE, 5.1.4.RELEASE, 4.2.11.RELEASE
How to fix
Upgrade to a fixed version: Spring Security 4.2.12, 5.0.12, 5.1.5; Spring Security 5.0.11.RELEASE, 5.1.4.RELEASE, 4.2.11.RELEASE. Check the vendor advisory for mitigations.
References
- http://www.securityfocus.com/bid/107802
- https://lists.debian.org/debian-lts-announce/2019/05/msg00026.html
- https://pivotal.io/security/cve-2019-3795
- http://www.securityfocus.com/bid/107802
- https://lists.debian.org/debian-lts-announce/2019/05/msg00026.html
- https://pivotal.io/security/cve-2019-3795
Get alerted when CVE-2019-3795 or the next vulnerability affects your stack