{"answers":{"affected":"4 open source packages ship an affected version, including com.alibaba:fastjson and ro.pippo:pippo-fastjson. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-18349 exists.","fix":"Upgrade com.alibaba:fastjson to 1.2.31 or later.","what":"CVE-2017-18349 is a critical unsafe deserialization vulnerability in n/a, published on 23 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-18349 and fix it if it is affected.\n\nWhat it is: CVE-2017-18349 is a critical unsafe deserialization vulnerability in n/a, published on 23 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-18349 exists.\n\nAffected packages and fixed versions:\n- com.alibaba:fastjson (Maven): affected all versions; fixed in 1.2.31\n- com.alibaba:fastjson (Maven): affected all versions; fixed in 1.2.31\n- ro.pippo:pippo-fastjson (Maven): affected all versions; fixed in 1.12.0\n- ro.pippo:pippo-fastjson (Maven): affected all versions; fixed in 1.12.0\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-2017-18349/ (Markdown: https://insights.sbomify.com/CVE-2017-18349/index.md)","id":"CVE-2017-18349","markdown":"https://insights.sbomify.com/CVE-2017-18349/index.md","name":"CVE-2017-18349","record":{"aliases":["GHSA-xjrr-xv9m-4pw5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java JSON library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via crafted JSON requests due to unsafe deserialization in the Fastjson library.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"fastjson","vendor":"alibaba"},{"product":"pippo","vendor":"pippo"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"parseObject in Fastjson before 1.2.25, as used in FastjsonEngine in Pippo 1.11.0 and other products, allows remote attackers to execute arbitrary code via a crafted JSON request, as demonstrated by a crafted rmi:// URI in the dataSourceName field of HTTP POST data to the Pippo /json URI, which is mishandled in AjaxApplication.java.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2022-04-14","github_poc":2,"max_poc_stars":2,"metasploit":0,"nuclei":1,"refs":[{"date":"2022-04-14T16:31:46Z","kind":"github_poc","ref":"https://github.com/h0cksr/Fastjson--CVE-2017-18349-","stars":2,"title":null},{"date":"2026-05-29T09:40:49Z","kind":"github_poc","ref":"https://github.com/Dungsocool/CVE-2017-18349","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2017/CVE-2017-18349.yaml","stars":null,"title":"Fastjson Insecure Deserialization - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Improper Input Validation in alilibaba:fastjson","id":"CVE-2017-18349","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2017"},"n_packages":4,"n_references":3,"next":{"headline":"Memory corruption in n/a","id":"CVE-2017-18350"},"packages":[{"ecosystem":"Maven","fixed":["1.2.31"],"introduced":["0"],"last_affected":[],"package":"com.alibaba:fastjson","purl":null,"source":"GHSA-xjrr-xv9m-4pw5"},{"ecosystem":"Maven","fixed":["1.2.31"],"introduced":["0"],"last_affected":[],"package":"com.alibaba:fastjson","purl":"pkg:maven/com.alibaba/fastjson","source":"GHSA-xjrr-xv9m-4pw5"},{"ecosystem":"Maven","fixed":["1.12.0"],"introduced":["0"],"last_affected":[],"package":"ro.pippo:pippo-fastjson","purl":null,"source":"GHSA-xjrr-xv9m-4pw5"},{"ecosystem":"Maven","fixed":["1.12.0"],"introduced":["0"],"last_affected":[],"package":"ro.pippo:pippo-fastjson","purl":"pkg:maven/ro.pippo/pippo-fastjson","source":"GHSA-xjrr-xv9m-4pw5"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2017-18348"},"products":["n/a"],"published":"2018-10-23","related":[{"cvss_score":8.1,"headline":"Deserialization of Untrusted Data","id":"CVE-2022-25845","kev_date_added":null,"published":"2022-06-10"}],"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":"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":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via crafted JSON requests due to unsafe deserialization in the Fastjson library.","url":"https://insights.sbomify.com/CVE-2017-18349/"}