Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts.xwork/xwork-core
  4. ›
  5. CVE-2013-2135

CVE-2013-2135: Improper Control of Generation of Code ('Code Injection')

May 14, 2022 (updated December 28, 2023)

Apache Struts 2 before 2.3.14.3 allows remote attackers to execute arbitrary OGNL code via a request with a crafted value that contains both “${}” and “%{}” sequences, which causes the OGNL code to be evaluated twice.

References

  • struts.apache.org/development/2.x/docs/s2-015.html
  • www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
  • www.oracle.com/technetwork/topics/security/cpuoct2013-1899837.html
  • cwiki.apache.org/confluence/display/WW/S2-015
  • github.com/advisories/GHSA-pw8r-x2qm-3h5m
  • github.com/apache/struts/commit/01e6b251b4db78bfb7971033652e81d1af4cb3e0
  • github.com/apache/struts/commit/041206d2a693d02c0cb2e72765275e55ba14049f
  • github.com/apache/struts/commit/113c47082c09818bcef65acc436a2d0c7c47aa6c
  • github.com/apache/struts/commit/54e5c912ebd9a1599bfcf7a719da17c28127bbe3
  • github.com/apache/struts/commit/711cf0201cdd319a38cf29238913312355db29ba
  • github.com/apache/struts/commit/8b4fc81daeea3834bcbf73de5f48d0021917aa37
  • github.com/apache/struts/commit/cfb6e9afbae320a4dd5bdd655154ab9fe5a92c16
  • issues.apache.org/jira/browse/WW-4090
  • issues.apache.org/jira/browse/WW-4094
  • issues.apache.org/jira/browse/WW-4095
  • nvd.nist.gov/vuln/detail/CVE-2013-2135
  • web.archive.org/web/20140410223942/http://www.securityfocus.com/bid/64758

Code Behaviors & Features

Detect and mitigate CVE-2013-2135 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.3.14.3

Fixed versions

  • 2.3.14.3

Solution

Upgrade to version 2.3.14.3 or above.

Impact 9.3 CRITICAL

AV:N/AC:M/Au:N/C:C/I:C/A:C

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

maven/org.apache.struts.xwork/xwork-core/CVE-2013-2135.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.