CVE-2020-5408
Dictionary attack with Spring Security queryable text encryptor
Reported by pivotal · Published May 14, 2020
spring-security-core is fixed in 5.3.2, 5.2.4, 5.1.10 and 3 more (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-core | Maven Central | 5.3.2, 5.2.4, 5.1.10, 5.0.16, 4.2.16, 4.1.5 |
| spring_security | pivotal_software | 5.3.2, 5.2.4 |
| Spring Security | Spring by VMware | 5.3.2, 5.2.4, 5.1.10, 5.0.16, 4.2.16 |
| spring_security | vmware | 5.1.10, 5.0.16, 4.2.16 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring by VMware | Spring Security | 4.2, 5.0, 5.1 |
| Maven | org.springframework.security:spring-security-core | 4.1.0, 4.2.0, 5.0.0 |
| Spring by VMware | Spring Security | 4.2, 5.0, 5.1 |
Timeline
- May 14, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jan 11, 2023 CVE Updated
- Jun 1, 2026 Security Advisory (4 in total, the first dated here)
- Aug 30, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-5408
vulnetix vdb fixes CVE-2020-5408
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-5408/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-5408 advisory