CVE-2026-31379

Apache OFBiz: Path Traversal and File Upload Validation Bypass Leading to Arbitrary File Write, Stored XSS and RCE in Catalog Manager

Published May 19, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), Improper Control of Generation of Code ('Code 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

Apache OFBiz contains a combination of path traversal, stored cross‑site scripting, and code injection weaknesses in the catalog manager. An attacker who can control upload filenames can move outside the intended storage directory, causing an arbitrary overwriting or creation of files, including web‑accessible scripts. Through stored XSS the attacker can hijack sessions or deliver malicious content, while code injection permits execution of arbitrary code, effectively enabling remote code execution.

Affected Systems

Apache OFBiz versions earlier than 24.09.06.

Risk and Exploitability

The vulnerability can result in RCE, with a CVSS score of 6.1 indicating moderate severity. The EPSS score is less than 1%, suggesting a low probability of exploitation, and it is not listed in CISA KEV. The combination of path traversal and code injection gives attackers a clear path once the upload interface is reachable; while the attack may require authenticated access to the catalog manager, it can be inferred that it is exploitable via normal user interaction.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache OFBiz to version 24.09.06 to remove the vulnerable code path.
  • If an upgrade is not immediately possible, restrict the catalog manager upload endpoint to privileged users only and enforce strict filename validation to prevent directory traversal.
  • Deploy a web application firewall or runtime monitoring to block suspicious path traversal and code injection patterns.

Generated by OpenCVE AI on May 19, 2026 at 15:32 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.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', '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 Input During Web Page Generation ('Cross-site Scripting'), Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), Improper Control of Generation of Code ('Code 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: Path Traversal and File Upload Validation Bypass Leading to Arbitrary File Write, Stored XSS and RCE in Catalog Manager
Weaknesses CWE-22
CWE-79
CWE-94
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

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