---
id: "CVE-2026-85627"
kind: "vulnerability"
aliases: ["CVE-2026-85627"]
title: "Apache OFBiz: any logged-in user can run operating system commands"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["apache-ofbiz", "java", "runtime", "self-hosted"]
not_affected_if: ["auth-required", "no-user-accounts"]
published_at: "2026-11-05T14:17:07+00:00"
first_seen_at: "2026-11-05T14:39:19+00:00"
updated_at: "2026-11-05T14:40:34+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85627", "first_seen_at": "2026-11-05T14:39:19+00:00"}]
exploit_sources: []
---

# Apache OFBiz: any logged-in user can run operating system commands

Apache OFBiz 24.09 before 24.09.08 lets a user with an ordinary non-admin account abuse the updateLayoutImage event to store a template that is evaluated and then runs unsandboxed Groovy. The result is arbitrary operating system commands as the OFBiz process user.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed OFBiz version and whether it is `24.09` earlier than `24.09.08`
- Review which accounts can log in to the OFBiz instance, since any stock non-admin account is enough to exploit this

## Fix

- Apache OFBiz: upgrade to `24.09.08`

## Timeline

- 2026-11-05T14:39:19+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-85627

## From the sources

Improper Neutralization of Special Elements Used in a Template Engine ('Server-Side Template Injection') in Apache OFBiz 24.09 before 24.09.08 on all platforms allows a remote authenticated attacker holding only a stock non-administrative account to execute arbitrary operating system commands as the OFBiz process user, by using the updateLayoutImage event, which writes DataResource fields with no permission check, to retype an attacker-created DataResource as an FTL template evaluating its own primary key, then using the resulting FreeMarker evaluation to plant an OFBiz Form Widget whose use-when attribute runs unsandboxed Groovy. Users are recommended to upgrade to version 24.09.08, which fixes this issue.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
