Insufficient Entropy in Spring Security

Description

Spring Security versions 5.3.x prior to 5.3.2, 5.2.x prior to 5.2.4, 5.1.x prior to 5.1.10, 5.0.x prior to 5.0.16 and 4.2.x prior to 4.2.16 use a fixed null initialization vector with CBC Mode in the implementation of the queryable text encryptor. A malicious user with access to the data that has been encrypted using such an encryptor may be able to derive the unencrypted values using a dictionary attack.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Not specified
Published (advisory)
2020-06-15 19:34:31 UTC
Updated
2023-02-01 05:03:03 UTC
GitHub reviewed
2020-06-11 20:44:52 UTC
NVD published
2020-05-14

EPSS Score

Score Percentile
0.47% 64.52%

CVSS Scores

Base score Version Severity Vector
6.5 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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:L)
A normal user session is enough; they don’t have to be admin.
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:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-329 Generation of Predictable IV with CBC Mode
CWE-330 Use of Insufficiently Random Values

Affected packages (5)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.springframework.security:spring-security-core >= 5.3.0, < 5.3.2 5.3.2
maven org.springframework.security:spring-security-core >= 5.2.0, < 5.2.4 5.2.4
maven org.springframework.security:spring-security-core >= 5.1.0, < 5.1.10 5.1.10
maven org.springframework.security:spring-security-core >= 5.0.0, < 5.0.16 5.0.16
maven org.springframework.security:spring-security-core < 4.2.16 4.2.16

References

cvelogic Threat Intelligence