CVE-2026-85627

Apache OFBiz: Authenticated Code Execution Vulnerability

Published Nov 5, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Apache OFBiz 24.09 prior to 24.09.08 contains a server‑side template injection that permits an authenticated non‑administrative user to execute arbitrary operating system commands. The flaw is located in the updateLayoutImage event, which writes DataResource fields without a permission check. An attacker can create a DataResource referencing an FTL template; when the template engine evaluates its own primary key, unsandboxed Groovy code embedded in the use‑when attribute runs, leading to full OS command execution as the OFBiz process user.

Affected Systems

The affected product is Apache OFBiz version 24.09 and earlier releases up to 24.09.07 on all supported platforms. The issue only manifests for users with a standard account that can invoke the updateLayout event. No other products or later versions are impacted.

Risk and Exploitability

The vulnerability is exploitable only by authenticated users with standard access rights. The CVSS score of 8.8 indicates a high severity, and the requirement of only ordinary credentials combined with the ability to run system commands yields a high risk. No EPSS data or KEV listing indicates that public exploitation is not yet widespread, yet the potential impact remains significant for unpatched installations. An attacker could trigger the flaw by sending crafted image update requests or by uploading a benign image that carries the malicious template payload.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache OFBiz to version 24.09.08 or newer.
  • Restrict non‑administrative accounts from invoking the updateLayoutImage event, or enforce stricter permission checks in the event handler.
  • If an upgrade is not possible immediately, disable the updateLayoutImage functionality or configure the template engine to sandbox or disallow FreeMarker template evaluation in user‑supplied data.

Generated by OpenCVE AI on November 6, 2026 at 14:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Apache
Apache ofbiz
Apache Software Foundation
Apache Software Foundation apache Ofbiz
Vendors & Products Apache
Apache ofbiz
Apache Software Foundation
Apache Software Foundation apache Ofbiz
Type Values Removed Values Added
Description 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.
Title Apache OFBiz: Authenticated Code Execution Vulnerability
Weaknesses CWE-1336
CWE-425
References
Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-425

    Direct Request ('Forced Browsing')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 6, 2026, 11:36 AM
Reserved
Sep 4, 2026, 11:07 AM
Status
Analyzed
Published
Nov 5, 2026, 2:17 PM
Modified
Nov 10, 2026, 9:40 PM