CVE-2010-1622: Spring Framework Improper Control Of Generation Of Vulnerability

MODERATE
Advisory Identifier: GHSA-vpr3-f594-mg5g
CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2010-1622
GHSA Identifier GHSA-vpr3-f594-mg5g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

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.

org.springframework:spring fixed: 2.5.7
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    <version>2.5.7</version>
</dependency>
org.springframework:spring fixed: 3.0.3
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    <version>3.0.3</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2010-1622 Affected Spring Framework Versions

2 component(s)
Fixed Versions:
2.5.73.0.3
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

NVD — CVE-2010-1622 NVD
https://nvd.nist.gov/vuln/detail/CVE-2010-1622
Security Fix Commit FIX COMMIT
https://github.com/spring-projects/spring-framework/commit/3a5af35d37c79d0644d49b93f792a4c18fe8eb71
access.redhat.com/errata/rhsa-2011:01... WEB
https://access.redhat.com/errata/RHSA-2011:0175
Spring Framework Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2010-1622
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=606706
Spring Framework Source Repository REPOSITORY
https://github.com/spring-projects/spring-framework
seclists.org/fulldisclosure/2010... WEB
https://seclists.org/fulldisclosure/2010/Jun/456
Spring Framework Security Information SECURITY
https://web.archive.org/web/20100623011648/http://www.springsource.com/security/cve-2010-1622
Spring Framework Security Information SECURITY
https://web.archive.org/web/20161014113129/http://www.securitytracker.com/id/1033898
Spring Framework Security Information SECURITY
https://web.archive.org/web/20200227210033/http://www.securityfocus.com/archive/1/511877
Spring Framework Security Information SECURITY
https://web.archive.org/web/20200228060816/http://www.securityfocus.com/bid/40954
geronimo.apache.org/2010/07/21/apache-g... WEB
http://geronimo.apache.org/2010/07/21/apache-geronimo-v216-released.html
Spring Framework Security Information SECURITY
http://geronimo.apache.org/21x-security-report.html
Spring Framework Security Information SECURITY
http://geronimo.apache.org/22x-security-report.html
www.exploit-db.com/exploits/13918 WEB
http://www.exploit-db.com/exploits/13918
Spring Framework Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/cpuoct2015-2367953.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2011-0175.html

Frequently Asked Questions

What is CVE-2010-1622?
CVE-2010-1622 is a security vulnerability in Spring Framework involving Improper Control of Generation of Code ('Code Injection') in Spring Framework under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Spring Framework versions are affected?
Affected versions include releases prior to 2.5.7, 3.0.3 across affected packages: org.springframework:spring.
What version fixes CVE-2010-1622?
Upgrading to 2.5.7, 3.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring affected?
Yes, org.springframework:spring is affected in releases prior to 2.5.7, 3.0.3. Upgrade your dependency to 2.5.7, 3.0.3 or later.
What CWE is associated with CVE-2010-1622?
CVE-2010-1622 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Maven dependencies for CVE-2010-1622?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}