{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.unomi:unomi. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-13942 exists.","fix":"Upgrade org.apache.unomi:unomi to 1.5.2 or later.","what":"CVE-2020-13942 is a critical code injection vulnerability in Apache Unomi, published on 24 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-13942 and fix it if it is affected.\n\nWhat it is: CVE-2020-13942 is a critical code injection vulnerability in Apache Unomi, published on 24 Nov 2020. 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-2020-13942 exists.\n\nAffected packages and fixed versions:\n- org.apache.unomi:unomi (Maven): affected all versions; fixed in 1.5.2\n- org.apache.unomi:unomi (Maven): affected all versions; fixed in 1.5.2\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-2020-13942/ (Markdown: https://insights.sbomify.com/CVE-2020-13942/index.md)","id":"CVE-2020-13942","markdown":"https://insights.sbomify.com/CVE-2020-13942/index.md","name":"CVE-2020-13942","record":{"aliases":["GHSA-xp5j-wj4h-2jq9"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Unomi","requires_auth":"none","summary":"Attackers can execute arbitrary code by injecting malicious scripts into the public context endpoint of Apache Unomi.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"unomi","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"It is possible to inject malicious OGNL or MVEL scripts into the /context.json public endpoint. This was partially fixed in 1.5.1 but a new attack vector was found. In Apache Unomi version 1.5.2 scripts are now completely filtered from the input. It is highly recommended to upgrade to the latest available version of the 1.5.x release to fix this problem.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2020-11-18","github_poc":9,"max_poc_stars":28,"metasploit":0,"nuclei":1,"refs":[{"date":"2020-11-19T08:22:17Z","kind":"github_poc","ref":"https://github.com/eugenebmx/CVE-2020-13942","stars":28,"title":"CVE-2020-13942 unauthenticated RCE POC through MVEL and OGNL injection"},{"date":"2020-11-20T23:25:44Z","kind":"github_poc","ref":"https://github.com/shifa123/CVE-2020-13942-POC-","stars":8,"title":"CVE-2020-13942 POC + Automation Script"},{"date":"2020-11-18T10:29:47Z","kind":"github_poc","ref":"https://github.com/lp008/CVE-2020-13942","stars":6,"title":null},{"date":"2020-12-22T02:57:50Z","kind":"github_poc","ref":"https://github.com/yaunsky/Unomi-CVE-2020-13942","stars":4,"title":"CVE-2020-13942 Apache Unomi 远程代码执行漏洞脚getshell"},{"date":"2020-11-21T08:48:46Z","kind":"github_poc","ref":"https://github.com/blackmarketer/CVE-2020-13942","stars":3,"title":null},{"date":"2021-01-11T15:50:27Z","kind":"github_poc","ref":"https://github.com/dev-team-12x/apche_unomi_rce","stars":0,"title":"Apache Unomi CVE-2020-13942: RCE Vulnerabilities"},{"date":"2021-09-05T16:39:19Z","kind":"github_poc","ref":"https://github.com/Prodrious/CVE-2020-13942","stars":0,"title":null},{"date":"2025-04-02T15:51:20Z","kind":"github_poc","ref":"https://github.com/corsisechero/CVE-2020-13942byVulHub","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Remote Code Execution in Apache Unomi","id":"CVE-2020-13942","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2020"},"n_packages":2,"n_references":9,"next":{"headline":"Exposure of Sensitive Information to an Unauthorized Actor in Apache Tomcat","id":"CVE-2020-13943"},"packages":[{"ecosystem":"Maven","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.unomi:unomi","purl":null,"source":"GHSA-xp5j-wj4h-2jq9"},{"ecosystem":"Maven","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.unomi:unomi","purl":"pkg:maven/org.apache.unomi/unomi","source":"GHSA-xp5j-wj4h-2jq9"}],"prev":{"headline":"Improper Input Validation in Apache Solr","id":"CVE-2020-13941"},"products":["Apache Unomi"],"published":"2020-11-24","related":[{"cvss_score":9.8,"headline":"Improper Input Validation in Apache Unomi","id":"CVE-2020-11975","kev_date_added":null,"published":"2020-06-05"},{"cvss_score":7.5,"headline":"Apache Unomi log injection","id":"CVE-2021-31164","kev_date_added":null,"published":"2021-05-04"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary code by injecting malicious scripts into the public context endpoint of Apache Unomi.","url":"https://insights.sbomify.com/CVE-2020-13942/"}