CVE-2010-1622: Spring Framework Improper Control Of Generation Of Vulnerability
MODERATECVE-2010-1622 is a MODERATE improper control of generation of vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves improper control of generation of code ('code injection') in spring framework. Remediation is available by upgrading affected packages to version 2.5.7, 3.0.3.
CVE-2010-1622 at a Glance
How to Fix CVE-2010-1622
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</groupId>
<artifactId>spring</artifactId>
<version>2.5.7</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>3.0.3</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
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2010-1622, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework
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.5.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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-2010-1622 Affected Spring Framework Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework:spring
|
Maven |
≥ 2.5.0
< 2.5.7
|
2.5.7
|
|
org.springframework:spring
|
Maven |
≥ 3.0.0
< 3.0.3
|
3.0.3
|
References
Frequently Asked Questions
What is CVE-2010-1622?
Which Spring Framework versions are affected?
What version fixes CVE-2010-1622?
Is spring affected?
What CWE is associated with CVE-2010-1622?
How can I check Maven dependencies for CVE-2010-1622?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vpr3-f594-mg5g",
"modified" : "2024-03-14T21:28:08Z",
"published" : "2022-05-17T03:28:34Z",
"aliases" : [ "CVE-2010-1622" ],
"summary" : "Improper Control of Generation of Code ('Code Injection') in Spring Framework",
"details" : "SpringSource Spring Framework 2.5.x before 2.5.6.SEC02, 2.5.7 before 2.5.7.SR01, and 3.0.x before 3.0.3 allows remote attackers to execute arbitrary code via an HTTP request containing `class.classLoader.URLs[0]=jar:` followed by a URL of a crafted .jar file.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.5.0"
}, {
"fixed" : "2.5.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.5.6"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.0.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-1622"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/commit/3a5af35d37c79d0644d49b93f792a4c18fe8eb71"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2011:0175"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2010-1622"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=606706"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spring-projects/spring-framework"
}, {
"type" : "WEB",
"url" : "https://seclists.org/fulldisclosure/2010/Jun/456"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20100623011648/http://www.springsource.com/security/cve-2010-1622"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20161014113129/http://www.securitytracker.com/id/1033898"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200227210033/http://www.securityfocus.com/archive/1/511877"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228060816/http://www.securityfocus.com/bid/40954"
}, {
"type" : "WEB",
"url" : "http://geronimo.apache.org/2010/07/21/apache-geronimo-v216-released.html"
}, {
"type" : "WEB",
"url" : "http://geronimo.apache.org/21x-security-report.html"
}, {
"type" : "WEB",
"url" : "http://geronimo.apache.org/22x-security-report.html"
}, {
"type" : "WEB",
"url" : "http://www.exploit-db.com/exploits/13918"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/cpuoct2015-2367953.html"
}, {
"type" : "WEB",
"url" : "http://www.redhat.com/support/errata/RHSA-2011-0175.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T22:33:40Z",
"nvd_published_at" : "2010-06-21T16:30:00Z"
}
}