PortGate

Advisories · Java & business apps

CVE-2024-45195 High CVSS 7.5 Actively exploited

Apache OFBiz unauthenticated remote code execution

Disclosed 2024 · Last reviewed 2 Dec 2026

A chain of missing authorization checks let an unauthenticated client reach a controller that could run code on the OFBiz host.

What happened

View and request maps that should have required authentication were reachable directly, bypassing the login controller.

Affected and patched versions

Affected
Apache OFBiz before 18.12.16.
Patched
Apache OFBiz 18.12.16 and later.

How to check your server

Check

find /opt /var /usr -name 'ofbiz.jar' -o -name 'VERSION' -path '*ofbiz*' 2>/dev/null

How to fix and harden

  1. Confirm the OFBiz version from the install directory or the VERSION file.
  2. Upgrade to 18.12.16 or later from Apache. Do not patch individual XML maps by hand.
  3. Restart OFBiz after the upgrade.
  4. Keep the application off the public internet until the version check matches 18.12.16 or later.

Fix

find /opt /var /usr -name 'ofbiz.jar' -o -name 'VERSION' -path '*ofbiz*' 2>/dev/null

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON