{"schemaVersion":3,"id":"CVE-2012-0394","aliases":["GHSA-hmvj-gc9q-mg9p"],"status":"published","duplicateOf":null,"title":null,"description":"The DebuggingInterceptor component in Apache Struts before 2.3.1.1, when developer mode is used, allows remote attackers to execute arbitrary commands via unspecified vectors.  NOTE: the vendor characterizes this behavior as not \"a security vulnerability itself.","dates":{"published":"2012-01-08T15:00:00.000Z","modified":"2024-08-06T18:23:30.986Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.8,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.729,"percentile":0.99449,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.729},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.729,"percentile":0.99449}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.729,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.729,"percentile":0.99449}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"31434","name":"Apache Struts - Developer Mode OGNL Execution (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/31434","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["java"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"java","file":"exploits/java/remote/31434.rb","codes":["CVE-2012-0394","OSVDB-78276"]},"metasploit":null},{"id":"18329","name":"Apache Struts 2 < 2.3.1 - Multiple Vulnerabilities","source":"exploit-database","url":"https://www.exploit-db.com/exploits/18329","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":null,"platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"webapps","platform":"multiple","file":"exploits/multiple/webapps/18329.txt","codes":["CVE-2012-0394","CVE-2012-0393","CVE-2012-0392","CVE-2012-0391","OSVDB-78277","OSVDB-78276","OSVDB-78109","OSVDB-78108"]},"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_STRUTS_DEV_MODE","name":"Apache Struts 2 Developer Mode OGNL Execution","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/struts_dev_mode.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/struts_dev_mode","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["unknown-stability"],"sideEffects":["unknown-side-effects"],"reliability":["unknown-reliability"]}}],"exploitCount":3,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"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.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"apache","product":"struts","name":"struts","label":"struts","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, ≤ 2.3.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, ≤ 2.3.17","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-struts","label":"Apache Struts","category":"framework"}},"hubHref":"/vendor/apache/struts"},{"vendor":"org.apache.struts.xwork","product":"xwork-core","name":"org.apache.struts.xwork:xwork-core","label":"xwork-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.struts.xwork/xwork-core","purlType":"maven","versions":[{"text":"< 2.3.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.18","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://struts.apache.org/2.x/docs/version-notes-2311.html","label":"struts.apache.org/2.x/docs/version-notes-2311.html","hostname":"struts.apache.org","tags":["X Refsource MISC","Release Notes","Vendor Advisory","WEB"]},{"url":"http://struts.apache.org/2.x/docs/s2-008.html","label":"struts.apache.org/2.x/docs/s2-008.html","hostname":"struts.apache.org","tags":["X Refsource MISC","Vendor Advisory","WEB"]},{"url":"http://www.exploit-db.com/exploits/18329","label":"www.exploit-db.com/exploits/18329","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry","WEB"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html","label":"archives.neohapsis.com/archives/bugtraq/2012-01/0031.html","hostname":"archives.neohapsis.com","tags":["Mailing List","X Refsource BUGTRAQ","Broken Link","WEB"]},{"url":"http://www.exploit-db.com/exploits/31434","label":"www.exploit-db.com/exploits/31434","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry","WEB"]},{"url":"https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt","label":"www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt","hostname":"www.sec-consult.com","tags":["X Refsource MISC","Broken Link","WEB"]},{"url":"http://www.osvdb.org/78276","label":"www.osvdb.org/78276","hostname":"www.osvdb.org","tags":["VDB Entry","X Refsource OSVDB","Broken Link"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-0394","label":"nvd.nist.gov/vuln/detail/CVE-2012-0394","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/struts/commit/34c80dae734e70f13c0e46f9c83602fb71318e58","label":"github.com/apache/struts/commit/34c80dae734e70f13c0e46f9c83602fb71318e58","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/struts/commit/9cad25f258bb2629d263f828574d2671366c238d","label":"github.com/apache/struts/commit/9cad25f258bb2629d263f828574d2671366c238d","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/struts","label":"github.com/apache/struts","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://issues.apache.org/jira/browse/WW-3729","label":"issues.apache.org/jira/browse/WW-3729","hostname":"issues.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2012-01-08T15:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T18:23:30.986Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":52,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:19:58.567Z","stale":false,"partial":false}}