GitHub Advisory Database
GHSA-v2r2-7qm7-jj6v
Spring Security uses insufficiently random values
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.springframework.security:spring-security-core | From 4.2.0 before 4.2.12 (fixed in 4.2.12) |
| Maven | org.springframework.security:spring-security-core | From 5.0.0 before 5.0.12 (fixed in 5.0.12) |
| Maven | org.springframework.security:spring-security-core | From 5.1.0 before 5.1.5 (fixed in 5.1.5) |