CVE-2021-26295RCE vulnerability in latest Apache OFBiz due to Java serialisation using RMI
- 9.8CriticalCVSS base score
- 97.8%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
Apache OFBiz has unsafe deserialization prior to 17.12.06. An unauthenticated attacker can use this vulnerability to successfully take over Apache OFBiz.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and a Nuclei template for it.
Show the exploits2
Metasploit modules1 module
- Apache OFBiz SOAP Java Deserialization (Metasploit module) (opens in a new tab)
exploit/linux/http/apache_ofbiz_deserialization_soapRank excellentdisclosed 22 Mar 2021
Nuclei templates1 template
- Apache OFBiz <17.12.06 - Arbitrary Code Execution (Nuclei template) (opens in a new tab)
http/cves/2021/CVE-2021-26295.yamlSeverity critical
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 53 days later
· 53 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 97.8% · top 0.1% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Apache Software Foundation · Apache OFBiz
- affected Apache OFBiz 17.12.01 to 17.12.05
What to do
Workaround: Upgrade to at least 17.12.06 or apply the patch at https://github.com/apache/ofbiz-framework/commit/af9ed4e/
References
References13
- https://lists.apache.org/thread.html/r3c1802eaf34aa78a61b4e8e044c214bc94accbd28a11f3a276586a31%40%3Cuser.ofbiz.apache.org%3E (opens in a new tab)x_refsource_MISCx_transferred
- [ofbiz-notifications] 20210324 [jira] [Commented] (OFBIZ-12167) Adds a blacklist (to be renamed soon to denylist) in Java serialisation (CVE-2021-26295) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-dev] 20210325 Comment out the SOAP and HTTP engines? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-dev] 20210325 Re: Comment out the SOAP and HTTP engines? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-dev] 20210329 Re: Comment out the SOAP and HTTP engines? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20210329 [jira] [Commented] (OFBIZ-12167) Adds a blacklist (to be renamed soon to denylist) in Java serialisation (CVE-2021-26295) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20210329 [jira] [Commented] (OFBIZ-6942) Comment out RMI related code because of the Java deserialization issue [CVE-2016-2170] (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/162104/Apache-OFBiz-SOAP-Java-Deserialization.html (opens in a new tab)x_refsource_MISCx_transferred
- [ofbiz-notifications] 20210427 [jira] [Updated] (OFBIZ-12212) Comment out the SOAP and HTTP engines - Fix [CVE-2021-30128] (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-commits] 20210427 [ofbiz-site] branch master updated: Updates security page for CVE-2021-29200 and 30128 fixed in 17.12.07 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20210605 [jira] [Updated] (OFBIZ-12212) Comment out the SOAP and HTTP engines - Fix [CVE-2021-30128] (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20210729 [jira] [Updated] (OFBIZ-12212) Comment out the SOAP and HTTP engines - Fix [CVE-2021-30128] (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-commits] 20210811 [ofbiz-site] branch master updated: Updates security page for CVE-2021-37608 fixed in 17.12.08 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-13106 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-26295)Record last updated .