CVE-2011-2731: Spring Security - Concurrent Execution using Shared Resource with Improper Synchronization

Summary

17/05/2022
Yes i
Moderate
Not published

CVE-2011-2731: Concurrent Execution using Shared Resource with Improper Synchronization in Spring Security. Affects org.springframework.security:spring-security-core across 2 version ranges.

< 2.0.7 >= 3.0.0, < 3.0.6

Fixed in 2.0.7 or 3.0.6, 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is org.springframework.security:spring-security-core, which is a part of the Maven ecosystem. 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 before 2.0.7 and 3.0.6 of Spring Security.

Vulnerability Detail

The vulnerability, identified as CVE-2011-2731, is a race condition in the RunAsManager mechanism of Spring Security. It occurs when the Authentication object is stored in the shared security context without proper synchronization. This flaw allows attackers to gain privileges by exploiting a crafted thread. The consequences of this vulnerability can be severe, as it enables unauthorized access and privilege escalation within the application.

How To Fix

Latest published version: 7.2.0-RC1 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

  • < 2.0.7 2.0.7
  • >= 3.0.0, < 3.0.6 3.0.6

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 specific workaround mentioned for this vulnerability. The recommended approach is to apply the fix by upgrading to the latest secure version of Spring Security.

Conclusion

In conclusion, the CVE-2011-2731 vulnerability in Spring Security exposes applications to privilege escalation attacks. It is crucial to upgrade to the fixed versions (2.0.7 or 3.0.6) of Spring Security to mitigate this risk. Additionally, developers should review their application's security architecture and consider implementing additional security measures. 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 Java framework that provides authentication, authorization, and other security features for web applications.

This vulnerability allows attackers to gain privileges within the application, potentially leading to unauthorized access and privilege escalation.

You can use Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it in real-time.

Specific exploits for this vulnerability are not mentioned in the provided information. However, it is crucial to address this vulnerability promptly to prevent potential attacks.

You can find more information about this vulnerability, including its technical details and the fixed versions, in the GitHub Advisory Database (https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4644-hg35-55m9/GHSA-4644-hg35-55m9.json).

Related vulnerabilities

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

How To Fix

Latest published version: 7.2.0-RC1 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

  • < 2.0.7 2.0.7
  • >= 3.0.0, < 3.0.6 3.0.6

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