CVE-2021-22113: Spring Framework Incorrect Authorization Vulnerability
MODERATECVE-2021-22113 is a MODERATE incorrect authorization vulnerability (CWE-863: Incorrect Authorization) affecting Spring Framework libraries in the Maven ecosystem. The issue involves incorrect authorization in spring cloud netflix zuul. Remediation is available by upgrading affected packages to version 2.2.7.
CVE-2021-22113 at a Glance
How to Fix CVE-2021-22113
To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-zuul</artifactId>
<version>2.2.7</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework.cloud
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-22113, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.cloud
Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.cloud command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-22113 Affected Spring Framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.cloud:spring-cloud-netflix-zuul
|
Maven |
< 2.2.7
|
2.2.7
|
References
Frequently Asked Questions
What is CVE-2021-22113?
Which Spring Framework versions are affected?
What version fixes CVE-2021-22113?
Is spring-cloud-netflix-zuul affected?
What CWE is associated with CVE-2021-22113?
How can I check Maven dependencies for CVE-2021-22113?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vwpg-f6gw-rjvf",
"modified" : "2021-05-07T18:52:54Z",
"published" : "2021-05-10T15:18:50Z",
"aliases" : [ "CVE-2021-22113" ],
"summary" : "Incorrect Authorization in Spring Cloud Netflix Zuul",
"details" : "Applications using the “Sensitive Headers” functionality in Spring Cloud Netflix Zuul 2.2.6.RELEASE and below may be vulnerable to bypassing the “Sensitive Headers” restriction when executing requests with specially constructed URLs. Applications that use Spring Security's StrictHttpFirewall (enabled by default for all URLs) are not affected by the vulnerability, as they reject requests that allow bypassing.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.cloud:spring-cloud-netflix-zuul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-22113"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-cloud/spring-cloud-netflix/commit/8ecb3dca511c3ce0454e42ac31ee2331d7318c07"
}, {
"type" : "WEB",
"url" : "https://tanzu.vmware.com/security/cve-2021-22113"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-07T18:52:54Z",
"nvd_published_at" : "2021-02-23T17:15:00Z"
}
}