CVE-2026-50223
Apache OFBiz vulnerability analysis and mitigation

Overview

CVE-2026-50223 is a code injection vulnerability in Apache OFBiz that allows a low-privileged authenticated user with Content/DataResource editing privileges to perform FreeMarker template injection attacks leading to Remote Code Execution (RCE). It affects all Apache OFBiz versions before 24.09.07 and was publicly disclosed on June 10, 2026, by Apache security team member Jacopo Cappellato. The vulnerability carries a CVSS v3.1 base score of 8.8 (High) (Apache Advisory, Github Advisory).

Technical details

The vulnerability is classified as CWE-94 (Improper Control of Generation of Code / Code Injection) and stems from insufficient sanitization of user-supplied input within the Content/DataResource editing functionality of Apache OFBiz. Specifically, the application uses the FreeMarker templating engine to render content, and fails to neutralize malicious template directives injected by an authenticated user, allowing server-side template injection (SSTI). An attacker must have network access to the OFBiz instance and hold a low-privileged account with Content/DataResource editing rights; no further user interaction is required. The vulnerability was reported by researchers identified as "yi" and "Jongyeon Lee" (oss-security, Github Advisory).

Impact

Successful exploitation grants an attacker full Remote Code Execution on the affected Apache OFBiz server, resulting in high impact to confidentiality, integrity, and availability. An attacker can execute arbitrary operating system commands as the OFBiz service account, potentially enabling data exfiltration, installation of backdoors, lateral movement within the internal network, and complete system compromise. All Apache OFBiz deployments running versions prior to 24.09.07 are at risk (Apache Advisory, oss-security).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit code and no confirmed evidence of in-the-wild exploitation (Github Advisory). The EPSS score is approximately 0.657% (47th percentile), indicating a moderate near-term exploitation probability relative to other vulnerabilities. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No specific threat actor attribution has been reported (Apache Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Apache OFBiz instances running versions prior to 24.09.07 using tools like Shodan or Censys, or by checking the OFBiz version disclosure on login pages.
  2. Obtain low-privileged credentials: Acquire or compromise a user account that has Content/DataResource editing privileges within the OFBiz application (e.g., through phishing, credential stuffing, or insider access).
  3. Access Content/DataResource editor: Log in to the OFBiz web interface and navigate to the Content or DataResource management section where template-based content can be created or edited.
  4. Inject FreeMarker template payload: Insert a malicious FreeMarker template directive into a content or data resource field. A typical SSTI payload for FreeMarker RCE may look like: ${"freemarker.template.utility.Execute"?new()("id")} or similar constructs that invoke Java runtime execution.
  5. Trigger template rendering: Save or preview the injected content to cause the OFBiz server to render the FreeMarker template, executing the embedded payload server-side.
  6. Achieve RCE: The server executes the injected command as the OFBiz service account, enabling reverse shell establishment, data exfiltration, or further post-exploitation activity (oss-security, Github Advisory).

Indicators of compromise

  • Network: Unusual outbound connections from the OFBiz server to external IPs or unexpected internal hosts following content editing activity; HTTP requests to Content/DataResource editing endpoints containing FreeMarker template syntax (e.g., ${, <#, ?new()).
  • Logs: OFBiz application logs showing template rendering errors or unexpected Java class instantiation (e.g., freemarker.template.utility.Execute); access logs with POST requests to /webtools/control/main or content/data resource management endpoints containing encoded template payloads.
  • File System: Unexpected new files (web shells, scripts) written to the OFBiz installation directory or temp directories by the OFBiz service account; modification timestamps on content-related files inconsistent with normal operations.
  • Process: Unusual child processes spawned by the OFBiz Java process (e.g., sh, bash, cmd.exe, curl, wget, python) indicating OS command execution via template injection (oss-security).

Mitigation and workarounds

The primary remediation is to upgrade Apache OFBiz to version 24.09.07 or later, which contains the fix for this vulnerability (Apache Advisory). As an interim workaround, administrators should restrict Content/DataResource editing privileges to only fully trusted administrators, minimizing the attack surface. Additionally, monitoring for suspicious template injection patterns in content editing activities and applying network-level access controls to limit exposure of the OFBiz management interface are recommended defensive measures (oss-security).

Community reactions

The vulnerability was disclosed via the Apache security mailing list and oss-security by Jacopo Cappellato on June 10, 2026, crediting researchers "yi" and "Jongyeon Lee" for the report (oss-security). The disclosure was noted on Bluesky infosec community accounts shortly after publication, and the advisory was picked up by multiple vulnerability tracking services including VulDB, INCIBE-CERT, and ENISA's EUVD. No major vendor statements beyond the Apache advisory or significant independent researcher commentary have been identified at this time.

Additional resources


SourceThis report was generated using AI

Related Apache OFBiz vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-45434CRITICAL9.8
  • Apache OFBiz logoApache OFBiz
  • cpe:2.3:a:apache:ofbiz
NoYesMay 19, 2026
CVE-2026-50223HIGH8.8
  • Apache OFBiz logoApache OFBiz
  • cpe:2.3:a:apache:ofbiz
NoYesJun 10, 2026
CVE-2026-47342HIGH8.8
  • Apache OFBiz logoApache OFBiz
  • cpe:2.3:a:apache:ofbiz
NoYesJun 10, 2026
CVE-2026-46586HIGH8.8
  • Apache OFBiz logoApache OFBiz
  • cpe:2.3:a:apache:ofbiz
NoYesMay 19, 2026
CVE-2026-45187MEDIUM6.5
  • Apache OFBiz logoApache OFBiz
  • cpe:2.3:a:apache:ofbiz
NoYesMay 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management