CVE-2026-31378 Apache OFBiz: JSON Attribute Override and URL Allowlist Bypass Leads to Remote Code Execution

Medium 6.5 Published Updated

Attackers can achieve remote code execution in Apache OFBiz by exploiting JSON attribute override and URL allowlist bypass vulnerabilities.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-31378?

CVE-2026-31378 is a medium-severity code injection vulnerability in Apache Ofbiz, published on 19 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Input Validation 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.

Weakness: CWE-20

Which versions are affected by CVE-2026-31378?

It affects 1 product.

Products include Apache Ofbiz.

How do I fix CVE-2026-31378?

No fix has been published for CVE-2026-31378 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-31378 being exploited?

There is no known exploitation of CVE-2026-31378 in the wild and no public exploit code.

All Apache Ofbiz vulnerabilities

Sources

Also known as GHSA-r6v2-rh7v-5j2x.

Is CVE-2026-31378 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free