---
id: CVE-2026-82960
title: >-
  Apache OFBiz: Widget use-when Expression Injection Bypasses Groovy Sandbox for
  authenticated RCE
summary: >-
  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
  arbitrar…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: adp
cwe:
  - CWE-94
vendor: Apache Software Foundation
product: Apache OFBiz
affected:
  - apache_ofbiz < 24.09.08
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-05T15:48:06.205154Z'
published: '2026-11-05'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T15:48:21.355Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-82960'
references:
  - url: 'https://lists.apache.org/thread.html/7b2syzksp7klt9fvhdg0olldvs2g83lz'
tags:
  - cve.org
ingestedAt: '2026-11-05T21:36:00.920Z'
---

## Overview

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.

## Affected

- `apache_ofbiz < 24.09.08`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
