title: Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security
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.
problem types: CWE-330: Use of Insufficiently Random Values
affected:
{
product: Spring Security
vendor: Spring
versions:
lessThan: 5.0.11.RELEASE, status: affected, version: 5.0, versionType: custom
lessThan: 5.1.4.RELEASE, status: affected, version: 5.1, versionType: custom
lessThan: 4.2.11.RELEASE, status: affected, version: 4.2, versionType: custom
}
metrics:
cvssV3_0: [
attackComplexity: HIGH
attackVector: PHYSICAL
availabilityImpact: NONE
baseScore: 3.8
baseSeverity: LOW
confidentialityImpact: NONE
integrityImpact: HIGH
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
version: 3.0
]