Security Vulnerability Report
中文
CVE-2025-36185 CVSS 6.2 MEDIUM

CVE-2025-36185

Published: 2025-11-07 19:16:25
Last Modified: 2025-11-18 19:03:38

Description

IBM Db2 12.1.0 through 12.1.2 for Linux, UNIX and Windows (includes Db2 Connect Server) could allow a local user to cause a denial of service due to improper neutralization of special elements in data query logic.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:* - VULNERABLE
cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:* - VULNERABLE
cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:* - VULNERABLE
IBM Db2 12.1.0 for Linux/UNIX/Windows
IBM Db2 12.1.1 for Linux/UNIX/Windows
IBM Db2 12.1.2 for Linux/UNIX/Windows
IBM Db2 Connect Server (all affected versions)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-36185 PoC - IBM Db2 Denial of Service // This PoC demonstrates the vulnerability in data query logic // Usage: Execute with local Db2 user privileges import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class CVE_2025_36185_PoC { public static void main(String[] args) { String host = "localhost"; String port = "50000"; String database = "SAMPLE"; String username = "db2user"; String password = "password"; try { // Connect to IBM Db2 String url = "jdbc:db2://" + host + ":" + port + "/" + database; Class.forName("com.ibm.db2.jcc.DB2Driver"); Connection conn = DriverManager.getConnection(url, username, password); Statement stmt = conn.createStatement(); // Trigger vulnerability with specially crafted query // The exact payload depends on specific Db2 version String maliciousQuery = "SELECT * FROM table WHERE column = '特殊元素构造'"; System.out.println("Executing malicious query..."); stmt.executeQuery(maliciousQuery); System.out.println("PoC execution completed"); stmt.close(); conn.close(); } catch (Exception e) { System.out.println("Exception occurred: " + e.getMessage()); e.printStackTrace(); } } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-36185", "sourceIdentifier": "[email protected]", "published": "2025-11-07T19:16:24.750", "lastModified": "2025-11-18T19:03:37.633", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "IBM Db2 12.1.0 through 12.1.2 for Linux, UNIX and Windows (includes Db2 Connect Server) could allow a local user to cause a denial of service due to improper neutralization of special elements in data query logic."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-943"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*", "versionStartIncluding": "12.1.0", "versionEndIncluding": "12.1.2", "matchCriteriaId": "5D256132-BDD1-4EE8-95CE-D8F6F1A34085"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*", "versionStartIncluding": "12.1.0", "versionEndIncluding": "12.1.2", "matchCriteriaId": "7C549B0C-9BA1-4287-8734-62B6E76D2C5E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*", "versionStartIncluding": "12.1.0", "versionEndIncluding": "12.1.2", "matchCriteriaId": "B546C523-9A9C-4555-8A2E-2E7D1676F695"}]}]}], "references": [{"url": "https://www.ibm.com/support/pages/node/7250487", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}