{"vuid":"VU#112992","idnumber":"112992","name":"Apache Struts 2 framework REST plugin insecurely deserializes untrusted XML data","keywords":["apache","struts","rest","deserialization"],"overview":"Apache Struts 2 framework, versions 2.5 to 2.5.12, with REST plugin insecurely deserializes untrusted XML data. A remote, unauthenticated attacker can leverage this vulnerability to execute arbitrary code in the context of the Struts application.","clean_desc":"CWE-502: Deserialization of Untrusted Data - CVE-2017-9805 In Apache Struts 2 framework, versions 2.5 to 2.5.12, the REST plugin uses XStreamHandler with an instance of XStream to deserialize XML data. Because there is no type filtering, a remote, unauthenticated attacker may send a specially crafted XML payload to execute arbitrary code in the context of the Struts application. Refer to the researcher's blog post for more information about this vulnerability. A Metasploit module with exploit code is publicly available.","impact":"A remote, unauthenticated attacker may send a specially crafted XML payload to execute arbitrary code on vulnerable servers in the context of the Struts application.","resolution":"Apply an update The vendor has released version 2.5.13 to address this vulnerability. No workaround is possible according to the vendor, so patching is strongly recommended.","workarounds":"Remove or limit the REST plugin If it is not used, consider removing the REST plugin. Per the vendor, it is also possible to limit its functionality to normal server pages or JSON with the following configuration change in struts.xml: <constant name=\"struts.action.extension\" value=\"xhtml,,json\" />","sysaffected":"","thanks":"Man Yue Mo of lgtm is credited with reporting this vulnerability to the vendor.","author":"This document was written by Joel Land.","public":["https://cwe.mitre.org/data/definitions/502.html","https://struts.apache.org/docs/s2-052.html","https://lgtm.com/blog/apache_struts_CVE-2017-9805","https://github.com/rapid7/metasploit-framework/pull/8924/files"],"cveids":["CVE-2017-9805"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2017-09-06T12:04:57Z","publicdate":"2017-09-05T00:00:00Z","datefirstpublished":"2017-09-06T13:16:10Z","dateupdated":"2017-09-06T13:16:39Z","revision":14,"vrda_d1_directreport":"0","vrda_d1_population":"4","vrda_d1_impact":"4","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"N","cvss_accesscomplexity":"L","cvss_authentication":null,"cvss_confidentialityimpact":"C","cvss_integrityimpact":"C","cvss_availabilityimpact":"C","cvss_exploitablity":null,"cvss_remediationlevel":"OF","cvss_reportconfidence":"C","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"H","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"10","cvss_basevector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","cvss_temporalscore":"8.3","cvss_environmentalscore":"8.26044988608","cvss_environmentalvector":"CDP:ND/TD:H/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}