CVE-2026-82960

Apache OFBiz: Widget use-when Expression Injection Bypasses Groovy Sandbox for authenticated RCE

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

Analysis

AI-generated

Technical 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 8.8, EPSS 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.

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 17:59 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 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
Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 6, 2026, 4:56 AM
Reserved
Aug 31, 2026, 1:02 PM
Status
Analyzed
Published
Nov 5, 2026, 2:17 PM
Modified
Nov 10, 2026, 9:42 PM