Description
Improper Control of Generation of Code ('Code Injection') in ModelFormField in the Apache OFBiz cms plugin before 24.09.08 on all platforms allows a remote authenticated attacker holding only CMS content-editor access to execute arbitrary operating system commands as the OFBiz process user via a single HTTP POST request, by submitting a crafted caContentIdTo parameter to EditAddContent, because the CMS screen copies that parameter into a top-level context variable that is interpolated into a form field's use-when attribute and the resulting string is passed unvalidated to GroovyUtil.eval(), whose compile-time SecureASTCustomizer sandbox does not restrict runtime reflection, allowing a payload that closes the expanded string literal and invokes java.lang.Runtime via reflection. Users are recommended to upgrade to version 24.09.08, which fixes this issue.
Published: 2026-11-05
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Patch Immediately
AI Analysis

Impact

Improper control of code generation in the Apache OFBiz CMS plugin allows an authenticated content‑editor to inject a Groovy expression via the caContentIdTo parameter. The expression is placed into the use‑when attribute of a form field and passed unvalidated to GroovyUtil.eval, which ignores the sandbox’s reflection restrictions. The attacker can close the string literal, invoke java.lang.Runtime through reflection, and execute arbitrary OS commands as the OFBiz process user.

Affected Systems

The vulnerability affects Apache OFBiz through version 24.09.07 and earlier. Any deployment of this CMS plugin that has not been upgraded to 24.09.08 or later is susceptible. The issue exists on all platforms supported by the OFBiz distribution.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, so the exact likelihood of exploitation is unknown. However, the flaw requires only legitimate CMS content‑editor credentials and a single HTTP POST request to EditAddContent, making it relatively easy for an attacker with such access to trigger. The vulnerability enables execution of arbitrary system commands, giving full control over the server as the OFBiz user. The flaw is not listed in CISA’s KEV catalog, but its impact is severe.

Generated by OpenCVE AI on November 5, 2026 at 15:38 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache OFBiz to version 24.09.08 or later, which removes the vulnerable code path.
  • Restrict CMS content‑editor privileges to trusted individuals and audit login usage; consider temporarily disabling the content‑editor role if possible.
  • Inspect the application for additional use‑when expressions and remove or hard‑code them, or enable stricter Groovy sandbox settings to prevent runtime reflection.
  • Monitor application logs for EditAddContent activity and unusual use‑when parameter values to detect attempts.

Generated by OpenCVE AI on November 5, 2026 at 15:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 05 Nov 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 05 Nov 2026 16:30:00 +0000

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'}


Thu, 05 Nov 2026 16:00:00 +0000

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

Thu, 05 Nov 2026 14:15:00 +0000

Type Values Removed Values Added
Description Improper Control of Generation of Code ('Code Injection') in ModelFormField in the Apache OFBiz cms plugin before 24.09.08 on all platforms allows a remote authenticated attacker holding only CMS content-editor access to execute arbitrary operating system commands as the OFBiz process user via a single HTTP POST request, by submitting a crafted caContentIdTo parameter to EditAddContent, because the CMS screen copies that parameter into a top-level context variable that is interpolated into a form field's use-when attribute and the resulting string is passed unvalidated to GroovyUtil.eval(), whose compile-time SecureASTCustomizer sandbox does not restrict runtime reflection, allowing a payload that closes the expanded string literal and invokes java.lang.Runtime via reflection. Users are recommended to upgrade to version 24.09.08, which fixes this issue.
Title Apache OFBiz: Widget use-when Expression Injection Bypasses Groovy Sandbox for authenticated RCE
Weaknesses CWE-94
References

Subscriptions

Apache Ofbiz
Apache Software Foundation Apache Ofbiz
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-11-05T15:48:21.355Z

Reserved: 2026-08-31T13:02:45.129Z

Link: CVE-2026-82960

cve-icon Vulnrichment

Updated: 2026-11-05T15:48:17.662Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-05T14:17:06.540

Modified: 2026-11-05T16:17:49.617

Link: CVE-2026-82960

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-05T15:45:17Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')