{"id":"MSF-multi--http--struts_code_exec_classloader","name":"Apache Struts ClassLoader Manipulation Remote Code Execution","description":"This module exploits a remote command execution vulnerability in Apache Struts versions 1.x (<= 1.3.10) and 2.x (< 2.3.16.2). In Struts 1.x the problem is related with the ActionForm bean population mechanism while in case of Struts 2.x the vulnerability is due to the ParametersInterceptor. Both allow access to 'class' parameter that is directly mapped to getClass() method and allows ClassLoader manipulation. As a result, this can allow remote attackers to execute arbitrary Java code via crafted parameters.","cves":["CVE-2014-0094","CVE-2014-0112","CVE-2014-0114"],"author":"Mark Thomas, Przemyslaw Celej, Redsadic, Matthew Hall","published":"2014-03-06","platform":"Linux,Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/struts_code_exec_classloader.rb","path":"modules/exploits/multi/http/struts_code_exec_classloader.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"struts_code_exec_classloader.rb","vulnerabilities":[{"id":"CVE-2014-0094","state":"PUBLISHED","title":null,"titleSource":null,"description":"The ParametersInterceptor in Apache Struts before 2.3.16.2 allows remote attackers to \"manipulate\" the ClassLoader via the class parameter, which is passed to the getClass method.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-0094","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-0094"},"updatedAt":"2024-08-06T09:05:37.910Z","retrievedAt":"2026-11-26T11:55:20.461Z","stale":false,"error":null},{"id":"CVE-2014-0112","state":"PUBLISHED","title":null,"titleSource":null,"description":"ParametersInterceptor in Apache Struts before 2.3.20 does not properly restrict access to the getClass method, which allows remote attackers to \"manipulate\" the ClassLoader and execute arbitrary code via a crafted request. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-0094.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-0112","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-0112"},"updatedAt":"2024-08-06T09:05:38.849Z","retrievedAt":"2026-11-26T11:55:13.923Z","stale":false,"error":null},{"id":"CVE-2014-0114","state":"PUBLISHED","title":null,"titleSource":null,"description":"Apache Commons BeanUtils, as distributed in lib/commons-beanutils-1.8.0.jar in Apache Struts 1.x through 1.3.10 and in other products requiring commons-beanutils through 1.9.2, does not suppress the class property, which allows remote attackers to \"manipulate\" the ClassLoader and execute arbitrary code via the class parameter, as demonstrated by the passing of this parameter to the getClass method of the ActionForm object in Struts 1.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-0114","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-0114"},"updatedAt":"2026-10-14T16:20:55.413Z","retrievedAt":"2026-11-26T12:04:49.306Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--struts_code_exec_classloader.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--struts_code_exec_classloader","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--struts_code_exec_classloader/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--struts_code_exec_classloader/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}