VDB

CVE-2020-5408

CVE-2020-5408 PUBLISHED CVSS 6.5 MEDIUM

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.

PackageEcosystemFixed in
org.springframework.security:spring-security-coreMaven Central5.3.2, 5.2.4, 5.1.10, 5.0.16, 4.2.16, 4.1.5
spring_securitypivotal_software5.3.2, 5.2.4
Spring SecuritySpring by VMware5.3.2, 5.2.4, 5.1.10, 5.0.16, 4.2.16
spring_securityvmware5.1.10, 5.0.16, 4.2.16

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
Spring by VMwareSpring Security4.2, 5.0, 5.1
Mavenorg.springframework.security:spring-security-core4.1.0, 4.2.0, 5.0.0
Spring by VMwareSpring Security4.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›