{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.security:spring-security-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5407 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 5.2.4 or 5.3.2.","what":"CVE-2020-5407 is a high-severity authentication bypass vulnerability in Spring Security, published on 13 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-5407 and fix it if it is affected.\n\nWhat it is: CVE-2020-5407 is a high-severity authentication bypass vulnerability in Spring Security, published on 13 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-5407 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\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-5407/ (Markdown: https://insights.sbomify.com/CVE-2020-5407/index.md)","id":"CVE-2020-5407","markdown":"https://insights.sbomify.com/CVE-2020-5407/index.md","name":"CVE-2020-5407","record":{"aliases":["GHSA-48rw-j489-928m"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Security SAML","requires_auth":"low_privilege","summary":"Attackers can bypass SAML authentication by appending arbitrary assertions to valid responses, allowing unauthorized access in applications using Spring Security SAML.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"pivotal","cpe":[{"product":"spring_security","vendor":"pivotal_software"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"Spring Security versions 5.2.x prior to 5.2.4 and 5.3.x prior to 5.3.2 contain a signature wrapping vulnerability during SAML response validation. When using the spring-security-saml2-service-provider component, a malicious user can carefully modify an otherwise valid SAML response and append an arbitrary assertion that Spring Security will accept as valid.","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":"Signature Wrapping Vulnerability with spring-security-saml2-service-provider","id":"CVE-2020-5407","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2020"},"n_packages":4,"n_references":7,"next":{"headline":"Dictionary attack with Spring Security queryable text encryptor","id":"CVE-2020-5408"},"packages":[{"ecosystem":"Maven","fixed":["5.2.4"],"introduced":["5.2.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-48rw-j489-928m"},{"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-48rw-j489-928m"},{"ecosystem":"Maven","fixed":["5.3.2"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-48rw-j489-928m"},{"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-48rw-j489-928m"}],"prev":{"headline":"PCF Autoscaling logs its database credentials","id":"CVE-2020-5406"},"products":["Spring Security"],"published":"2020-05-13","related":[{"cvss_score":6.5,"headline":"Dictionary attack with Spring Security queryable text encryptor","id":"CVE-2020-5408","kev_date_added":null,"published":"2020-05-14"}],"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-16","vendors":["Spring by VMware"]},"summary":"Attackers can bypass SAML authentication by appending arbitrary assertions to valid responses, allowing unauthorized access in applications using Spring Security SAML.","url":"https://insights.sbomify.com/CVE-2020-5407/"}