{"answers":{"affected":"2 open source packages ship an affected version, including commons-fileupload:commons-fileupload. It affects 5 products.","exploited":"There is no known exploitation of CVE-2013-2186 in the wild and no public exploit code.","fix":"Upgrade commons-fileupload:commons-fileupload to 1.3.1 or later.","what":"CVE-2013-2186 is a high-severity unsafe deserialization vulnerability in Redhat Openshift, published on 28 Oct 2013. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2013-2186 and fix it if it is affected.\n\nWhat it is: CVE-2013-2186 is a high-severity unsafe deserialization vulnerability in Redhat Openshift, published on 28 Oct 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2013-2186 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- commons-fileupload:commons-fileupload (Maven): affected all versions; fixed in 1.3.1\n- commons-fileupload:commons-fileupload (Maven): affected all versions; fixed in 1.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2013-2186/ (Markdown: https://insights.sbomify.com/CVE-2013-2186/index.md)","id":"CVE-2013-2186","markdown":"https://insights.sbomify.com/CVE-2013-2186/index.md","name":"CVE-2013-2186","record":{"aliases":["DEBIAN-CVE-2013-2186","DSA-2827-1","GHSA-qx6h-9567-5fqw","RHSA-2013:1428"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Java file upload library","requires_auth":"none","summary":"Remote attackers can write arbitrary files via NULL byte injection in serialized instances, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"jboss_enterprise_brms_platform","vendor":"redhat"},{"product":"jboss_enterprise_portal_platform","vendor":"redhat"},{"product":"jboss_enterprise_web_server","vendor":"redhat"},{"product":"openshift","vendor":"redhat"},{"product":"ubuntu","vendor":"ubuntu"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"The DiskFileItem class in Apache Commons FileUpload, as used in Red Hat JBoss BRMS 5.3.1; JBoss Portal 4.3 CP07, 5.2.2, and 6.0.0; and Red Hat JBoss Web Server 1.0.2 allows remote attackers to write to arbitrary files via a NULL byte in a file name in a serialized instance.","ecosystems":["Maven","Red Hat:jboss_enterprise_web_server:1::el5","Red Hat:jboss_enterprise_web_server:1::el6"],"exploits":{"exploitdb":0,"first_seen":"2016-02-08","github_poc":3,"max_poc_stars":37,"metasploit":0,"nuclei":0,"refs":[{"date":"2016-02-08T08:29:11Z","kind":"github_poc","ref":"https://github.com/GrrrDog/ACEDcup","stars":37,"title":"Payload generator for Java Binary Deserialization attack with Commons FileUpload (CVE-2013-2186)"},{"date":"2019-04-23T04:49:13Z","kind":"github_poc","ref":"https://github.com/sa1g0n1337/Payload_CVE_2013_2186","stars":0,"title":"Code generate payload for CVE-2013-2186"},{"date":"2019-04-23T04:56:29Z","kind":"github_poc","ref":"https://github.com/sa1g0n1337/CVE_2013_2186","stars":0,"title":"Source code for CVE-2013-2186"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Arbitrary file write in Apache Commons Fileupload","id":"CVE-2013-2186","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:openshift","products":["redhat:openshift"],"type":"deserialization","year":"2013"},"n_packages":4,"n_references":19,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2013-2187"},"packages":[{"ecosystem":"Maven","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"commons-fileupload:commons-fileupload","purl":null,"source":"GHSA-qx6h-9567-5fqw"},{"ecosystem":"Maven","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"commons-fileupload:commons-fileupload","purl":"pkg:maven/commons-fileupload/commons-fileupload","source":"GHSA-qx6h-9567-5fqw"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:1::el5","fixed":["1:1.1.1-7.7.ep5.el5"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-fileupload","purl":"pkg:rpm/redhat/jakarta-commons-fileupload","source":"RHSA-2013:1428"},{"ecosystem":"Red Hat:jboss_enterprise_web_server:1::el6","fixed":["1:1.1.1-7.7.ep5.el6"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-fileupload","purl":"pkg:rpm/redhat/jakarta-commons-fileupload","source":"RHSA-2013:1428"}],"prev":{"headline":"Deserialization of Untrusted Data in Apache Tomcat","id":"CVE-2013-2185"},"products":["n/a"],"published":"2013-10-28","related":[{"cvss_score":6,"headline":"Cross-site request forgery in n/a","id":"CVE-2011-2908","kev_date_added":null,"published":"2012-11-23"},{"cvss_score":3.3,"headline":"Missing authorization in n/a","id":"CVE-2012-2377","kev_date_added":null,"published":"2012-11-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can write arbitrary files via NULL byte injection in serialized instances, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2013-2186/"}