CVE-2019-3795

Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security

MEDIUM
5.3
CVSS Score
Published: April 9, 2019 at 03:29 PM UTC
Updated: June 17, 2026 at 02:35 AM UTC
3 products affected across 3 vendorsDebian LinuxSpring SecuritySpring Security

Using Spring Security by Spring?

Get instant alerts when new vulnerabilities affect Spring Security - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.2.0 ≤ v < 4.2.125.0.0 ≤ v < 5.0.125.1.0 ≤ v < 5.1.5
Affected range stops below 4.2.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.1.5, so it looks safe — our inference, not a vendor statement
4.2 ≤ v < 4.2.11.RELEASE5.0 ≤ v < 5.0.11.RELEASE5.1 ≤ v < 5.1.4.RELEASE4.25.05.1
Affected range stops below 4.2.11.RELEASE, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.11.RELEASE, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.1.4.RELEASE, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (3)

VDB Entryx_refsource_BIDThird Party Advisory
http://www.securityfocus.com/bid/107802
Mailing Listx_refsource_MLISTThird Party Advisory
https://lists.debian.org/debian-lts-announce/2019/05/msg00026.html
x_refsource_CONFIRMVendor Advisory
https://pivotal.io/security/cve-2019-3795

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-330

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card