CVE-2026-133731: Apache OFBiz: External Control of File Name or Path in MimeTypeHtmlTemplate Enables Local File Read and Template Execution
External Control of File Name or Path in MimeTypeHtmlTemplate in Apache OFBiz 24.09 before 24.09.09 on all platforms allows a low-privileged authenticated user with Content Manager view access to read arbitrary local files, or with Content Manager create access to execute an uploaded FreeMarker template, via the HTML template location of a MIME type, which is used whenever any visitor, including an anonymous one, views content of that type. Users are recommended to upgrade to version 24.09.09, 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.09
Event History
Frequently Asked Questions
Which deployments are affected?
Apache OFBiz 24.09 releases before 24.09.09 are affected on all platforms. The issue involves MIME types whose HTML template location can be controlled through Content Manager access.
What level of access does an attacker need?
An attacker must be authenticated and have Content Manager view access to read arbitrary local files. Content Manager create access is required to upload and execute a FreeMarker template.
Can anonymous visitors trigger the vulnerable behavior?
Yes. Once a relevant MIME type has a configured HTML template location, the template is used whenever content of that type is viewed, including by anonymous visitors. The attacker still needs the stated authenticated Content Manager permissions to set up the malicious condition.
How can the issue be remediated?
Upgrade Apache OFBiz to version 24.09.09. This version fixes the issue.