CVE-2026-81816: Apache OFBiz: XML external entity injection (XXE)
XML External Entity (XXE) Injection in ContentWorker in Apache OFBiz 24.09 before 24.09.08 on all platforms allows a remote authenticated attacker holding content-author permission to read arbitrary server files and trigger server-side request forgery by storing a crafted text/xml DataResource containing an external entity declaration, causing ContentWorker's rendering of that content — via renderContentAsText and related CMS/help render paths — to parse the stored XML using FreeMarker's default NodeModel.parse DocumentBuilderFactory, which enables neither FEATURESECUREPROCESSING nor external-entity/DTD restrictions, resolving the external entity and returning its content in the rendered response. Users are recommended to upgrade to version 24.09.08, which fixes this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache OFBizto a version that resolves this vulnerability.Fixed in 24.09.08
Event History
Frequently Asked Questions
Who can exploit this issue?
A remote authenticated attacker must hold content-author permission. The issue affects Apache OFBiz 24.09 releases before 24.09.08 on all platforms.
What conditions are required for exploitation?
The attacker must be able to store a DataResource with text/xml content containing an external entity declaration. Exploitation occurs when OFBiz renders that stored content through ContentWorker, including renderContentAsText and related CMS or help rendering paths.
What can an attacker do if exploitation succeeds?
The attacker can cause the server to resolve external entities, allowing arbitrary server-file disclosure in the rendered response and server-side request forgery.
What is the recommended remediation?
Upgrade Apache OFBiz to version 24.09.08, which fixes the issue.