Skip to content

CVE-2026-83542: Apache OFBiz Remote Code Execution via Screen Descriptor Widget-Resource Injection

Density:
C-Level Executive Briefing CVE-2026-83542 CRITICAL SCORE 97/100

A critical unauthenticated remote code execution vulnerability in Apache OFBiz (CVE-2026-83542, CVSS 9.8) enables external adversaries to execute arbitrary Java and Groovy commands across enterprise ERP, procurement, and e-commerce platforms. By issuing a multipart HTTP POST request to pre-authentication endpoints while specifying an untrusted XML screen layout via the mainDecoratorLocation parameter, attackers force the MacroScreenRenderer to evaluate embedded Groovy expressions without sandboxing. This grants immediate root/daemon system access, enabling mass exfiltration of financial ledgers, customer records, and PCI-DSS assets. Hermes scores CVE-2026-83542 at HTS 97 (CRITICAL).

HYBRID

HERMES THREAT SCORE & ENTERPRISE ERP RUNTIME INTEGRITY

Target: Apache OFBiz Screen Rendering Architecture (ScreenFactory / MacroScreenRenderer / Groovy Script Evaluator)
Confidence: 98%
97 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 19 / 20
Weaponization 20 / 20
Exposure 19 / 20
Prevalence 18 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

[object Object]

In November 2026, the Apache Software Foundation (ASF) released a critical security bulletin disclosing CVE-2026-83542, an unauthenticated remote code execution vulnerability impacting Apache OFBiz versions prior to 24.09.08. The flaw is classified under CWE-94 (Improper Control of Generation of Code) and has been assigned a CVSS v3.1 score of 9.8 (CRITICAL).

Threat research published by VulnCheck and security analysts tracking enterprise initial access brokers reveals that functional exploit chains are circulating in underground forums. Apache OFBiz powers business-critical Enterprise Resource Planning (ERP), inventory management, and customer relationship software across global logistics, government procurement, and large retail enterprises.

The flaw allows an unauthenticated remote attacker to submit a multipart HTTP POST request that uploads a small XML screen descriptor and immediately points the view parameter mainDecoratorLocation to the temporary file descriptor. As OFBiz renders the response, the widget engine evaluates the XML, executing arbitrary Java/Groovy code directly within the web container process.

flowchart TD
subgraph Attacker["Adversary Operations"]
Req["HTTP POST Multipart Request\n(Injects mainDecoratorLocation)"]
Payload["Crafted XML Screen Descriptor\n<actions><set field='...' value='${groovy:...}'/></actions>"]
end
subgraph OFBiz["Apache OFBiz Application Server"]
Servlet["ControlServlet / RequestHandler"]
TempFile["Temporary Upload Stream\n/tmp/ofbiz_upload_*.tmp"]
Factory["ScreenFactory.getScreenFromLocation()"]
Renderer["MacroScreenRenderer"]
GroovyEngine["Groovy Scripting Engine\n(Unsandboxed Evaluation)"]
end
subgraph Target["Enterprise Host System"]
Shell["System Command Execution\n(/bin/sh / ProcessBuilder)"]
Database["ERP PostgreSQL / MySQL Database\n(Financial Records / Credentials)"]
end
Req --> Servlet
Payload --> TempFile
Servlet -->|Resolves mainDecoratorLocation| Factory
Factory -->|Reads Descriptor| TempFile
Factory --> Renderer
Renderer --> GroovyEngine
GroovyEngine --> Shell
Shell --> Database

Apache OFBiz features an extensible UI layout engine driven by XML โ€œscreensโ€ and โ€œdecoratorsโ€. In OFBiz, a screen defines page structures and data models, while a decorator supplies standardized navigational wrappers:

<screen name="main-decorator">
<section>
<actions>
<!-- Actions executed during screen preparation -->
</actions>
<widgets>
<!-- Renderable widgets -->
</widgets>
</section>
</screen>

When handling inbound HTTP requests, the OFBiz RequestHandler maps URLs to view handlers defined in controller.xml. Several standard controllers accept request parameters allowing callers to dynamically select layout themes, including mainDecoratorLocation.

In vulnerable releases of ModelScreen.java and ScreenFactory.java:

org/apache/ofbiz/widget/model/ScreenFactory.java
public static ModelScreen getScreenFromLocation(String combinedName)
throws IOException, SAXException, ParserConfigurationException {
String resourceName = ScreenFactory.getResourceNameFromCombined(combinedName);
String screenName = ScreenFactory.getScreenNameFromCombined(combinedName);
// VULNERABILITY: Resource resolution does not restrict URL protocols or file paths!
// Accepts file:, http:, or absolute filesystem paths without canonicalization check.
URL screenFileUrl = FlexibleLocation.resolveLocation(resourceName);
return getScreenFromLocation(screenFileUrl, screenName);
}

When an attacker uploads a multipart form containing an XML file, the servlet container writes the incoming stream into a temporary directory (e.g., /tmp/). By supplying mainDecoratorLocation=file:/tmp/ofbiz_upload_xxx.tmp#main-decorator, the attacker forces ScreenFactory to parse their uploaded XML as an OFBiz screen.

The MacroScreenRenderer processes <actions> blocks within the uploaded screen:

<screen name="main-decorator">
<section>
<actions>
<set field="exec" value="${groovy:'java.lang.Runtime.getRuntime().exec(\"id\")'}"/>
</actions>
<widgets>
<platform-specific><html><html-template><![CDATA[pwned]]></html-template></html></platform-specific>
</widgets>
</section>
</screen>

Because OFBiz evaluates string expressions prefixed with ${groovy:...} using the Apache Groovy shell without class whitelisting or AST sandbox transformations, the injected script executes with the full privileges of the application runtime.


The attacker identifies exposed Apache OFBiz endpoints by querying standard URI paths (/control/login, /sfa/control/editPortalPageColumnWidth, or /ecommerce/control/main). The presence of OFBiz.Visitor cookies or server headers confirms vulnerable instances.

The attacker crafts a single multipart HTTP POST request carrying:

  1. A file parameter containing the XML screen definition with the embedded Groovy payload.
  2. A URL parameter mainDecoratorLocation pointing to the temporary file path or an internal URI handler.

As ControlServlet invokes MacroScreenRenderer, the screen renderer instantiates GroovyUtil.eval(). The payload executes a reverse shell or writes a persistent JSP web shell into the webapp directory (applications/content/webapp/content/pwn.jsp).

The attacker extracts database credentials from framework/entity/config/entityengine.xml, queries the backend PostgreSQL/MySQL database, and dumps sensitive transactional data, supplier invoices, and employee records.

sequenceDiagram
autonumber
actor Attacker as Threat Actor
participant Web as OFBiz ControlServlet (:8443)
participant Temp as Filesystem (/tmp/)
participant Engine as Screen Engine & Groovy
participant DB as Backend Database
Attacker->>Web: POST /sfa/control/editPortalPageColumnWidth<br/>(Multipart Form with XML + mainDecoratorLocation)
Web->>Temp: Stream Uploaded File to /tmp/upload_1337.xml
Web->>Engine: Render Screen (mainDecoratorLocation = file:/tmp/upload_1337.xml)
Engine->>Temp: Parse upload_1337.xml
Engine->>Engine: Execute <set field="..." value="${groovy:...}"/>
Note over Engine: Unsandboxed Groovy execution triggers reverse shell!
Engine-->>Attacker: Connection Established (UID: ofbiz)
Attacker->>DB: Query Financial Records & Hash Dumps
Note over DB: Enterprise ERP Compromise Complete

VulnCheck telemetry and open-source intelligence track rapid weaponization of CVE-2026-83542:

  1. Initial Access Brokers (IABs): IABs are scanning IPv4 space for exposed Apache OFBiz endpoints. Upon successful compromise, brokers establish persistent SSH keys or web shells and auction off footholds on illicit underground markets.
  2. ERP Supply-Chain Extortion: Advanced ransomware operators target ERP backends because encrypting enterprise resource planning software halts logistics, shipping, and order fulfillment, creating extreme pressure on victims to pay extortion demands.
  3. Exploit Chaining with CVE-2026-82907: Attackers leverage externalLoginKey capture-replay flaws to maintain persistent administrative session tokens without authenticating through perimeter SAML/SSO gateways.

title: Apache OFBiz Screen Descriptor Groovy RCE Attempt
id: b341e972-8411-4389-9801-cve202683542
status: experimental
description: Detects HTTP requests to Apache OFBiz containing mainDecoratorLocation parameters pointing to file URI schemes or temporary directories.
references:
- https://lists.apache.org/thread/w225whj3z2rmq1h13b28b7j8f307584r
- https://nvd.nist.gov/vuln/detail/CVE-2026-83542
author: Hermes Codex Cyber Defense Team
date: 2026-11-08
logsource:
category: webserver
product: apache_ofbiz
detection:
selection_param:
cs-uri-query|contains:
- 'mainDecoratorLocation=file:'
- 'mainDecoratorLocation=/tmp/'
- 'mainDecoratorLocation=http:'
- 'mainDecoratorLocation=https:'
selection_post:
cs-method: 'POST'
cs-uri-stem|contains:
- '/control/'
- '/sfa/'
- '/catalog/'
condition: selection_param or (selection_post and selection_param)
falsepositives:
- None expected for external clients supplying file: or http: decorator schemes.
level: critical
tags:
- attack.initial_access
- attack.t1190
- attack.t1059
- cve.2026.83542

  1. Network Containment & Ingress Filtering: Block ingress traffic to Apache OFBiz web ports (default 8080 HTTP, 8443 HTTPS) from unauthenticated external IP addresses. Route management access strictly through corporate VPNs.

  2. Inspect ofbiz.log for Screen Loading Exceptions: Review /opt/ofbiz/runtime/logs/ofbiz.log for anomalous file-based screen loading events:

    Terminal window
    grep -Ei "ScreenFactory|mainDecoratorLocation|groovy|upload" /opt/ofbiz/runtime/logs/ofbiz.log*

    Identify requests attempting to load resources from /tmp/ or outside the standard OFBiz component classpath.

  3. Check for Staged XML Payloads & Web Shells: Examine temporary directories and webapp document roots for recently created files:

    Terminal window
    find /tmp /var/tmp -name "*upload*" -mtime -3
    find /opt/ofbiz/framework /opt/ofbiz/applications -name "*.jsp" -o -name "*.groovy" -mtime -3
  4. Audit Child Processes Spawned by Java: Execute process monitoring commands to verify whether the ofbiz daemon process has spawned shell processes:

    Terminal window
    ps -ef --forest | grep -A 5 -i "ofbiz"

    Look for child processes like sh, bash, curl, python, or nc.

  5. Review Database Connection Integrity: Inspect database audit logs (e.g., PostgreSQL pg_log) to verify whether bulk queries were executed against tables such as USER_LOGIN, PARTY, or PAYMENT_PREF around the time of the incident.


The Apache Software Foundation resolved CVE-2026-83542 in Apache OFBiz 24.09.08. Administrators must upgrade immediately:

  • Download: Upgrade to Apache OFBiz 24.09.08 via the official Apache OFBiz Download Page.
  • Core Fix: The patch enforces strict validation on mainDecoratorLocation, restricting resolution exclusively to trusted internal classpath resources and completely rejecting external file:, http:, or relative filesystem URIs.

If an immediate upgrade cannot be deployed:

  • WAF Regex Rule: Deploy an edge Web Application Firewall rule inspecting all URI query parameters and multipart request bodies for the pattern mainDecoratorLocation=(file|http|https|/tmp).
  • Restrict Multipart Handlers: Disable public unauthenticated access to the /sfa/control/editPortalPageColumnWidth route at the reverse proxy layer (e.g., Nginx, Apache HTTP Server).