# CVE-2026-85627: Apache OFBiz server-side template injection in updateLayoutImage

Source: https://junglewise.ai/threats/cve-2026-85627-improper-neutralization-of-special-elements-used-in-a-template  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-05. Updated: 2026-11-05  
License: CC BY 4.0 with a link back

CVE-2026-85627 · Severity: info · Published 2026-11-05

Apache OFBiz is an open-source enterprise resource planning system used to manage business operations and customer relations. A vulnerability in versions before 24.09.08 allows any regular user account (not just administrators) to inject malicious code through the image update feature, leading to complete system compromise by executing arbitrary commands as the application user.

Technologies: [Apache OFBiz](https://junglewise.ai/threats/technologies/ofbiz). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache).

## Quick answers

**Is CVE-2026-85627 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-85627 being exploited in the wild.

**How severe is CVE-2026-85627?** Informational severity, published 5 November 2026.

**Which products and versions are affected?** Apache OFBiz 24.09 before 24.09.08.

**Is there a fix for CVE-2026-85627?** Yes: fixed in 24.09.08. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-85627 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-85627?** Check whether you run Apache OFBiz at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 24.09.08

## Technical details

The updateLayoutImage event fails to validate DataResource fields before storing them, allowing an authenticated attacker to craft a malicious FTL template. By exploiting FreeMarker template evaluation and OFBiz Form Widget use-when attributes that execute unsandboxed Groovy code, an attacker gains remote code execution as the OFBiz process user. This is a server-side template injection (SSTI) vulnerability requiring only valid user credentials but no elevated privileges.

## Affected products

- Apache OFBiz 24.09 before 24.09.08

## Timeline

- 2026-11-05: disclosed

## References

- [https://lists.apache.org/thread.html/7b2syzksp7klt9fvhdg0olldvs2g83lz](https://lists.apache.org/thread.html/7b2syzksp7klt9fvhdg0olldvs2g83lz)

## Related threats

- [Apache OFBiz improper authorization in ContentWorker](https://junglewise.ai/threats/cve-2026-82894-improper-authorization-in-contentworker-in-apache-ofbiz-24-09)
- [Apache OFBiz server-side request forgery in SurveyWrapper](https://junglewise.ai/threats/cve-2026-81828-server-side-request-forgery-in-surveywrapper-in-apache-ofbiz-24)
- [Apache OFBiz XXE injection in ContentWorker](https://junglewise.ai/threats/cve-2026-81816-xml-external-entity-xxe-injection-in-contentworker-in-apache)
- [Apache OFBiz SQL injection in performFind service](https://junglewise.ai/threats/cve-2026-81815-sql-injection-in-the-entity-engine-s-generic-performfind-service)
- [Apache OFBiz missing authorization in ProductSearchEvents](https://junglewise.ai/threats/cve-2026-81808-missing-authorization-in-productsearchevents-in-apache-ofbiz-24)
