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

High 8.8 Published Updated

Attackers can bypass SAML authentication by appending arbitrary assertions to valid responses, allowing unauthorized access in applications using Spring Security SAML.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-5407?

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.

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

Weakness: CWE-347

Which versions are affected by CVE-2020-5407?

4 open source packages ship an affected version, including org.springframework.security:spring-security-core. It affects 1 product.

PackageAffectedFixed in
org.springframework.security:spring-security-core MavenFrom 5.2.05.2.4
org.springframework.security:spring-security-core MavenFrom 5.2.05.2.4
org.springframework.security:spring-security-core MavenFrom 5.3.05.3.2
org.springframework.security:spring-security-core MavenFrom 5.3.05.3.2

Products include Pivotal Software Spring Security.

How do I fix CVE-2020-5407?

Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 5.2.4 or 5.3.2.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2020-5407 being exploited?

There is no known exploitation of CVE-2020-5407 in the wild and no public exploit code.

Sources

Also known as GHSA-48rw-j489-928m.

Is CVE-2020-5407 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free