Apache OFBiz: Widget use-when Expression Injection Bypasses Groovy Sandbox for authenticated RCE
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in OFBiz 24.09.08 and 24.09.08.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Apache | OFBiz | <24.09.08 | 24.09.08 |
| Apache Software Foundation | <24.09.08 | 24.09.08 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in OFBiz, strongest first
Embed
A live severity badge for an advisory, README or ticket