Every CVE Search/ Get API key

CVE-2019-3795

Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security

3.8 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Physical
Complexity
High
Privileges needed
High
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

1.92%Up 1.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 3.8

Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security

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.

Record
CVE-2019-3795
CVSS 3.0
3.8 LowCVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
Weakness
CWE-330
Updated
2026-11-02
EUVDEUVD-2019-0437 3.8

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.

Record
EUVD-2019-0437
CVSS 3.0
3.8 LowCVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-v2r2-7qm7-jj6v 5.3

Spring Security uses insufficiently random values

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.

Record
GHSA-v2r2-7qm7-jj6v
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-330
Updated
2026-11-02
NVD 5.3

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.

Record
CVE-2019-3795
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS 3.0
3.8 LowCVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-330
Updated
2026-11-02
OSV 5.3

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.

Record
CVE-2019-3795
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVGHSA-v2r2-7qm7-jj6v 5.3

Spring Security uses insufficiently random values

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.

Record
GHSA-v2r2-7qm7-jj6v
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-330
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.security:spring-security-core
Maven
4.2.0 up to 4.2.12
4.2.12
org.springframework.security:spring-security-core
Maven
5.0.0 up to 5.0.12
5.0.12
org.springframework.security:spring-security-core
Maven
5.1.0 up to 5.1.5
5.1.5
libspring-security-2.0-java
Debian:8
before 2.0.7.RELEASE-3+deb8u1, plus listed versions
2.0.7.RELEASE-3
2.0.7.RELEASE-3+deb8u1
org.springframework.security:spring-security-core
Maven
4.2.0 up to 4.2.12, plus listed versions
4.2.0.RELEASE4.2.1.RELEASE4.2.10.RELEASE4.2.11.RELEASE4.2.2.RELEASE
Show 7 moreShow less
4.2.3.RELEASE4.2.4.RELEASE4.2.5.RELEASE4.2.6.RELEASE4.2.7.RELEASE4.2.8.RELEASE4.2.9.RELEASE
4.2.12
org.springframework.security:spring-security-core
Maven
5.0.0 up to 5.0.12, plus listed versions
5.0.0.RELEASE5.0.1.RELEASE5.0.10.RELEASE5.0.11.RELEASE5.0.2.RELEASE
Show 7 moreShow less
5.0.3.RELEASE5.0.4.RELEASE5.0.5.RELEASE5.0.6.RELEASE5.0.7.RELEASE5.0.8.RELEASE5.0.9.RELEASE
5.0.12
org.springframework.security:spring-security-core
Maven
5.1.0 up to 5.1.5, plus listed versions
5.1.0.RELEASE5.1.1.RELEASE5.1.2.RELEASE5.1.3.RELEASE5.1.4.RELEASE
5.1.5

History

History
RecordedChangedSources
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-3795 is a low vulnerability (CVSS 3.8) in Spring Security, published April 9, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.92%, the 80th percentile. Fixed in org.springframework.security:spring-security-core 4.2.12.

References

MoveEnter Open