CVE-2020-5407: Signature Wrapping Vulnerability in Spring Security

Summary

05/06/2020
Yes i
High
8.8

CVE-2020-5407: Signature wrapping vulnerability in Spring Security. Affects org.springframework.security:spring-security-core across 2 version ranges.

>= 5.2.0, < 5.2.4 >= 5.3.0, < 5.3.2

Fixed in 5.2.4 or 5.3.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The package under scrutiny is org.springframework.security:spring-security-core, which is a component of Spring Security. Spring Security is a powerful and highly customizable authentication and access control framework for Java applications. It provides comprehensive security services for web applications, including authentication, authorization, and protection against common security threats. This vulnerability affects versions 5.2.x prior to 5.2.4 and 5.3.x prior to 5.3.2 of the package.

Vulnerability Detail

The vulnerability in Spring Security is a signature wrapping vulnerability that occurs 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. This can lead to unauthorized access, privilege escalation, and potential data breaches.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.2.0, < 5.2.4 5.2.4
  • >= 5.3.0, < 5.3.2 5.3.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the fix by upgrading to the fixed versions of Spring Security.

Conclusion

In conclusion, the signature wrapping vulnerability in Spring Security can lead to unauthorized access, privilege escalation, and potential data breaches. It is crucial to upgrade to the fixed versions of Spring Security (5.2.4 or 5.3.2) and properly validate and sanitize SAML responses to prevent signature wrapping attacks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.springframework.security:spring-security-core →

Share this vulnerability

FAQ

Spring Security is a powerful and highly customizable authentication and access control framework for Java applications. It provides comprehensive security services for web applications, including authentication, authorization, and protection against common security threats.

A signature wrapping vulnerability is a type of attack where a malicious user can modify a valid digital signature in a way that the modified signature is still considered valid by the system. In the case of this vulnerability in Spring Security, a malicious user can modify a valid SAML response and append an arbitrary assertion that Spring Security will accept as valid.

This vulnerability can lead to unauthorized access, privilege escalation, and potential data breaches. An attacker could exploit this vulnerability to gain access to sensitive information, perform actions on behalf of other users, or manipulate the system in unintended ways.

No, only versions 5.2.x prior to 5.2.4 and 5.3.x prior to 5.3.2 of Spring Security are affected by this vulnerability. It is recommended to check the version of Spring Security used in your application and upgrade if necessary.

No, there is no known workaround for this vulnerability. It is crucial to apply the fix by upgrading to the fixed versions of Spring Security.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.security:spring-security-core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.2.0, < 5.2.4 5.2.4
  • >= 5.3.0, < 5.3.2 5.3.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback