cbcvebase.
CVE-2024-32113
published 2024-05-08

CVE-2024-32113: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache OFBiz.This issue affects Apache OFBiz: before 18.12.13…

PriorityP197critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2024-08-28
Exploited in the wild
EPSS
99.43%
99.9th percentile
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache OFBiz.This issue affects Apache OFBiz: before 18.12.13. Users are recommended to upgrade to version 18.12.13, which fixes the issue.

Affected

3 ranges
VendorProductVersion rangeFixed in
apacheofbiz< 18.12.1318.12.13
apacheofbiz
apache_software_foundationapache_ofbiz< 18.12.1318.12.13

Detection & IOCsextracted from sources · hover to see the quote

url/webtools/control/forgotPassword/%2e/%2e/ProgramExport
url/webtools/control/main/ProgramExport
commandgroovyProgram=%74%68%72%6f%77%20%6e%65%77%20%45%78%63%65%70%74%69%6f%6e(%27%69%64%27.%65%78%65%63%75%74%65().%74%65%78%74);
commandgroovyProgram=%74%68%72%6f%77%20%6e%65%77%20%45%78%63%65%70%74%69%6f%6e(%27%69%70%63%6F%6E%66%69%67%27.%65%78%65%63%75%74%65().%74%65%78%74);
commandgroovyProgram=\u0074\u0068\u0072\u006f\u0077\u0020\u006e\u0065\u0077\u0020\u0045\u0078\u0063\u0065\u0070\u0074\u0069\u006f\u006e\u0028\u0027\u0069\u0064\u0027\u002e\u0065\u0078\u0065\u0063\u0075\u0074\u0065\u0028\u0029\u002e\u0074\u0065\u0078\u0074\u0029\u003b
path/webtools/control/forgotPassword
yara
id: CVE-2024-32113 — Nuclei template matching POST to /webtools/control/forgotPassword/%2e/%2e/ProgramExport with groovyProgram parameter and response containing 'java.lang.Exception' or uid=/IPv4 regex
  • Look for POST requests to /webtools/control/forgotPassword/%2e/%2e/ProgramExport — the encoded dot-dot traversal sequence (%2e/%2e) is the canonical CVE-2024-32113 exploit path.
  • Detect the groovyProgram POST parameter in requests to OFBiz endpoints; both URL-percent-encoded and Unicode-escaped variants are used in the wild.
  • Alert on HTTP responses from OFBiz containing 'java.lang.Exception' in the body following a POST to a ProgramExport path — this is the success indicator used by public PoC/Nuclei templates.
  • Monitor for directory traversal sequences (../ and ;) in OFBiz URL paths — the flaw involves failure to sanitize URLs, allowing these sequences to bypass security filters.
  • Flag POST requests to /webtools/control/xmlrpc with XML body containing performCommand — this endpoint was also used in exploit PoC code for this CVE.
  • Use FOFA/Shodan fingerprints to identify exposed OFBiz instances: FOFA query app="Apache_OFBiz" and Shodan query title:"OFBiz".
  • Execution of user-provided Groovy scripts via ProgramExport with inadequate blocklisting is the RCE primitive — detect any unauthenticated access to the ProgramExport endpoint.
  • ·The Metasploit module was updated to drop the path-traversal step and exploit ProgramExport directly (CVE-2024-38856 behaviour), so network signatures relying solely on the %2e/%2e traversal pattern will not catch updated exploit tooling.
  • ·CISA's KEV deadline (August 28, 2024) applies only to Federal Civilian Executive Branch agencies under BOD 22-01, but CISA urges all organizations to patch.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
cisa9.8CRITICAL
vendor_apache9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.