CVE-2026-31380

Apache OFBiz: FreeMarker SSTI via Duplicate Parameter Sanitization Bypass

Published May 19, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') vulnerability in Apache OFBiz.

This issue affects Apache OFBiz: before 24.09.06.

Users are recommended to upgrade to version 24.09.06, which fixes the issue.

Analysis

AI-generated

Technical impact

The vulnerability in Apache OFBiz arises from improper handling of input parameters in FreeMarker templates, allowing an attacker to inject arbitrary FreeMarker expressions. When an attacker supplies a crafted value for a duplicated parameter, the sanitization step can be bypassed, enabling the template engine to evaluate malicious code. Based on the description, it is inferred that the injected expression may enable an attacker to compromise the application’s security posture.

Affected Systems

Products affected are Apache OFBiz versions prior to 24.09.06. All deployments using those releases are vulnerable until the application is upgraded to 24.09.06 or later, where the fix was implemented.

Risk and Exploitability

The CVSS score is 6.5, the EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog, suggesting current exploitation activity is unknown. Based on the description, it is inferred that attackers would need to supply malicious input to a user‑controllable field that is rendered in a FreeMarker template. If the application exposes such a field without proper authorization checks, exploitation can occur with minimal prerequisites.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache OFBiz to version 24.09.06 or later to apply the vendor’s fix.
  • Audit and harden template handling by enforcing strict input validation and reducing template exposure to user data; limit template rendering to trusted data only.
  • Implement request handling logic to reject or collapse duplicate parameters before they reach the template engine, thereby preventing the sanitization bypass.

Generated by OpenCVE AI on May 19, 2026 at 15:01 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 cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache ofbiz
Vendors & Products Apache
Apache ofbiz
Type Values Removed Values Added
Description Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') vulnerability in Apache OFBiz. This issue affects Apache OFBiz: before 24.09.06. Users are recommended to upgrade to version 24.09.06, which fixes the issue.
Title Apache OFBiz: FreeMarker SSTI via Duplicate Parameter Sanitization Bypass
Weaknesses CWE-917
References
Weaknesses
  • CWE-917

    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 19, 2026, 6:37 PM
Reserved
Mar 9, 2026, 8:59 AM
Status
Modified
Published
May 19, 2026, 10:16 AM
Modified
Oct 14, 2026, 8:10 PM