{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-26295 exists.","fix":"No fix has been published for CVE-2021-26295 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-26295 is a critical unsafe deserialization vulnerability in Apache Ofbiz, published on 22 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-26295 and fix it if it is affected.\n\nWhat it is: CVE-2021-26295 is a critical unsafe deserialization vulnerability in Apache Ofbiz, published on 22 Mar 2021. 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-2021-26295 exists.\n\nAffected product: Apache Ofbiz. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2021-26295/ (Markdown: https://insights.sbomify.com/CVE-2021-26295/index.md)","id":"CVE-2021-26295","markdown":"https://insights.sbomify.com/CVE-2021-26295/index.md","name":"CVE-2021-26295","record":{"aliases":["GHSA-hp7h-f9pw-x5wj"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache OFBiz","requires_auth":"none","summary":"Unauthenticated attackers can achieve remote code execution and take over Apache OFBiz via unsafe Java deserialization in RMI.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"ofbiz","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-502","name":"Deserialization of Untrusted Data"}],"description":"Apache OFBiz has unsafe deserialization prior to 17.12.06. An unauthenticated attacker can use this vulnerability to successfully take over Apache OFBiz.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-03-22","github_poc":5,"max_poc_stars":23,"metasploit":1,"nuclei":1,"refs":[{"date":"2021-03-23T15:25:01Z","kind":"github_poc","ref":"https://github.com/yumusb/CVE-2021-26295","stars":23,"title":null},{"date":"2021-05-13T13:28:15Z","kind":"github_poc","ref":"https://github.com/yuaneuro/ofbiz-poc","stars":5,"title":"CVE-2020-9496和CVE-2021-26295利用dnslog批量验证漏洞poc及exp"},{"date":"2021-03-24T08:25:04Z","kind":"github_poc","ref":"https://github.com/rakjong/CVE-2021-26295-Apache-OFBiz","stars":4,"title":"CVE-2021-26295 Apache OFBiz rmi反序列化POC"},{"date":"2021-03-22","kind":"metasploit","ref":"exploit/linux/http/apache_ofbiz_deserialization_soap","stars":null,"title":"Apache OFBiz SOAP Java Deserialization"},{"date":"2021-03-25T08:50:10Z","kind":"github_poc","ref":"https://github.com/dskho/CVE-2021-26295","stars":0,"title":"CVE-2021-26295 EXP 可成功反弹Shell"},{"date":"2021-04-09T16:20:18Z","kind":"github_poc","ref":"https://github.com/coolyin001/CVE-2021-26295--","stars":0,"title":"CVE-2021-26295-POC 利用DNSlog进行CVE-2021-26295的漏洞验证。  使用 poc：将目标放于target.txt后运行python poc.py即可。（Jdk环境需\u003c12，否则ysoserial无法正常生成有效载荷）  exp：python exp.py https://baidu.com然后进入命令执行界面（无回显）"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-26295.yaml","stars":null,"title":"Apache OFBiz \u003c17.12.06 - Arbitrary Code Execution"}],"tier":"weaponised"},"has_fix":false,"headline":"RCE vulnerability in latest Apache OFBiz due to Java serialisation using RMI","id":"CVE-2021-26295","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apache:ofbiz","products":["apache:ofbiz"],"type":"deserialization","year":"2021"},"n_packages":0,"n_references":13,"next":{"headline":"Cross-Site Request Forgery (CSRF) vulnerability in Apache MyFaces","id":"CVE-2021-26296"},"packages":[],"prev":{"headline":"Path traversal in n/a","id":"CVE-2021-26294"},"products":["Apache OFBiz"],"published":"2021-03-22","related":[{"cvss_score":9.8,"headline":"Apache OFBiz Forced Browsing","id":"CVE-2024-45195","kev_date_added":"2025-02-04","published":"2024-09-04"},{"cvss_score":9.1,"headline":"Apache OFBiz Path Traversal","id":"CVE-2024-32113","kev_date_added":"2024-08-07","published":"2024-05-08"},{"cvss_score":8.1,"headline":"Apache OFBiz Incorrect Authorization","id":"CVE-2024-38856","kev_date_added":"2024-08-27","published":"2024-08-05"},{"cvss_score":10,"headline":"Code injection in n/a","id":"CVE-2013-2250","kev_date_added":null,"published":"2013-08-15"},{"cvss_score":10,"headline":"Unspecified vulnerability in the Apache Open For Business Project (aka OFBiz) 10.04.x before 10.04.03 has unknown impact and attack vectors.","id":"CVE-2012-3506","kev_date_added":null,"published":"2012-10-25"},{"cvss_score":9.8,"headline":"Apache OFBiz: Authentication Bypass via Password-Change Logic Flaw Leading to RCE","id":"CVE-2026-45434","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":9.8,"headline":"Apache OFBiz: URLs allowing remote use of Groovy expressions, leading to RCE","id":"CVE-2024-47208","kev_date_added":null,"published":"2024-11-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"BSD-3-Clause","name":"Metasploit"},{"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":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Unauthenticated attackers can achieve remote code execution and take over Apache OFBiz via unsafe Java deserialization in RMI.","url":"https://insights.sbomify.com/CVE-2021-26295/"}