CVE-2011-2732: Improper Control of Generation of Code in Spring Security
4.3
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.904%
CWE
Published
5/17/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.springframework.security:spring-security-core | maven | < 2.0.7 | 2.0.7 |
org.springframework.security:spring-security-core | maven | >= 3.0.0, < 3.0.6 | 3.0.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of the 'spring-security-redirect' parameter during logout processing. Spring Security's LogoutFilter
handles redirects by reading this parameter and setting the Location header directly. In vulnerable versions, the parameter value was not properly sanitized for CRLF characters (\r\n), allowing attackers to craft URLs that inject malicious headers or split responses. The LogoutFilter
's handle()
method is directly responsible for processing this parameter and constructing the redirect response, making it the primary vulnerable function. The CVE description explicitly mentions the logout functionality and parameter manipulation, aligning with this component's responsibility.