{"answers":{"affected":"10 open source packages ship an affected version, including org.springframework.security:spring-security-core. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-5408 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 4.2.16, 5.0.16, 5.1.10 or 5.2.4.","what":"CVE-2020-5408 is a medium-severity vulnerability in Spring Security, published on 14 May 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-5408 and fix it if it is affected.\n\nWhat it is: CVE-2020-5408 is a medium-severity vulnerability in Spring Security, published on 14 May 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-5408 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.security:spring-security-core (Maven): affected all versions; fixed in 4.2.16\n- org.springframework.security:spring-security-core (Maven): affected all versions; fixed in 4.2.16\n- org.springframework.security:spring-security-core (Maven): affected from 5.0.0; fixed in 5.0.16\n- org.springframework.security:spring-security-core (Maven): affected from 5.0.0; fixed in 5.0.16\n- org.springframework.security:spring-security-core (Maven): affected from 5.1.0; fixed in 5.1.10\n- org.springframework.security:spring-security-core (Maven): affected from 5.1.0; fixed in 5.1.10\n- org.springframework.security:spring-security-core (Maven): affected from 5.2.0; fixed in 5.2.4\n- org.springframework.security:spring-security-core (Maven): affected from 5.2.0; fixed in 5.2.4\n- org.springframework.security:spring-security-core (Maven): affected from 5.3.0; fixed in 5.3.2\n- org.springframework.security:spring-security-core (Maven): affected from 5.3.0; fixed in 5.3.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5408/ (Markdown: https://insights.sbomify.com/CVE-2020-5408/index.md)","id":"CVE-2020-5408","markdown":"https://insights.sbomify.com/CVE-2020-5408/index.md","name":"CVE-2020-5408","record":{"aliases":["GHSA-2ppp-9496-p23q"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Security library","requires_auth":"low_privilege","summary":"An attacker with access to encrypted data can derive plaintext values via dictionary attack due to fixed initialization vectors in Spring Security's queryable text encryptor.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"pivotal","cpe":[{"product":"spring_security","vendor":"pivotal_software"},{"product":"spring_security","vendor":"vmware"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"},{"id":"CWE-329","name":"Generation of Predictable IV with CBC Mode"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Dictionary attack with Spring Security queryable text encryptor","id":"CVE-2020-5408","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"weak_cryptography","year":"2020"},"n_packages":10,"n_references":4,"next":{"headline":"Concourse Open Redirect in the /sky/login endpoint","id":"CVE-2020-5409"},"packages":[{"ecosystem":"Maven","fixed":["4.2.16"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["4.2.16"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.0.16"],"introduced":["5.0.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.0.16"],"introduced":["5.0.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.1.10"],"introduced":["5.1.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.1.10"],"introduced":["5.1.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.2.4"],"introduced":["5.2.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.2.4"],"introduced":["5.2.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.3.2"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-2ppp-9496-p23q"},{"ecosystem":"Maven","fixed":["5.3.2"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-2ppp-9496-p23q"}],"prev":{"headline":"Signature Wrapping Vulnerability with spring-security-saml2-service-provider","id":"CVE-2020-5407"},"products":["Spring Security"],"published":"2020-05-14","related":[{"cvss_score":8.8,"headline":"Signature Wrapping Vulnerability with spring-security-saml2-service-provider","id":"CVE-2020-5407","kev_date_added":null,"published":"2020-05-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Spring by VMware"]},"summary":"An attacker with access to encrypted data can derive plaintext values via dictionary attack due to fixed initialization vectors in Spring Security's queryable text encryptor.","url":"https://insights.sbomify.com/CVE-2020-5408/"}