CVE-2019-3795 | 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.

Published: 2019-04-09 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2019-3795 is rated Moderate Risk (49.3/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.87%). Core evidence: EPSS rose +1.32% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2019-3795

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.55% 1.87% +1.32%
2 2026-03-10 0.57% 0.55% -0.03%
3 2026-02-15 0.57%

Full EPSS history (17 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2019-3795

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]
3.8 3.0 LOW
CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:P)
Hands-on access—USB, keyboard, opening the case—not something you do purely over the wire.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
0.1 3.6 [email protected]
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2019-3795

GitHub Security Advisory for CVE-2019-3795

GHSA-v2r2-7qm7-jj6v · Severity: medium · Ecosystem: maven — Spring Security uses insufficiently random values

OS Trackers for CVE-2019-3795

vendor priority summary link
redhat low https://access.redhat.com/security/cve/CVE-2019-3795
ubuntu low CVE-2019-3795 low priority: Ubuntu including 1 source packages (libspring-security-2.0-java), 5 status rows across 5 suites (bionic, cosmic, trusty, upstream, xenial): DNE 4, needs-triage 1. https://ubuntu.com/security/CVE-2019-3795

Affected software / configurations for CVE-2019-3795

Vendor Product Version Raw CPE
vmware spring_security >= 4.2.0, < 4.2.12 cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
vmware spring_security >= 5.0.0, < 5.0.12 cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
vmware spring_security >= 5.1.0, < 5.1.5 cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
debian debian_linux 8.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*

References for CVE-2019-3795

cvelogic Threat Intelligence