Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Submitting SQL to Db2 requires at minimum a database session (PR:L); all other metrics match IBM's published vector.
Primary rating from Vendor (ibm).
CVSS VectorVendor: ibm
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Lifecycle Timeline
1DescriptionCVE.org
IBM Db2 11.5.0 through 11.5.9, and 12.1.0 through 12.1.4 is vulnerable to a trap when compiling a specially crafted statements containing subqueries could lead to a denial of service.
AnalysisAI
Denial of service in IBM Db2 11.5.x and 12.1.x allows a local database user to crash the database engine by submitting specially crafted SQL statements containing subqueries that trigger an infinite loop (CWE-835) in the query compiler. The vulnerability spans two active major release lines - 11.5.0 through 11.5.9 and 12.1.0 through 12.1.4 - covering a broad swath of IBM's current Db2 product lifecycle. No public exploit code or active exploitation has been identified at time of analysis; IBM has released a patch via the vendor advisory.
Technical ContextAI
IBM Db2 is an enterprise relational database management system widely deployed in financial, government, and IBM-ecosystem environments. The vulnerability resides in the SQL query compiler - specifically the code path that processes statements containing subqueries. CWE-835 (Loop with Unreachable Exit Condition) indicates that certain subquery constructs cause the compiler to enter a loop from which it cannot exit, consuming CPU resources until the process traps. In Db2 terminology, a 'trap' is a fatal internal assertion or unrecoverable error condition that terminates the database instance. The CPE string cpe:2.3:a:ibm:db2:*:*:*:*:*:*:*:* covers the full IBM Db2 software product across the affected version ranges. The CVSS local attack vector (AV:L) indicates the triggering SQL must be submitted through a local or authenticated database session rather than a purely anonymous remote channel.
RemediationAI
IBM has released a patch addressing this vulnerability; the exact fix pack and build numbers for both the 11.5.x and 12.1.x release lines must be obtained directly from the vendor advisory at https://www.ibm.com/support/pages/node/7279480, as the specific fixed version number was not included in the available intelligence data. As a compensating control while patching is scheduled, restrict database session access to trusted and explicitly authorized users, auditing SQL execution and DDL compilation privileges to reduce the population capable of submitting arbitrary queries. Blocking subquery-containing SQL via application-layer filtering is not a reliable general workaround due to the breadth of legitimate subquery usage, but could be applied narrowly in high-risk batch processing contexts. Restricting network access to the Db2 listener to authorized hosts reduces the exposure window for remote database connections leading to this local-class exploit.
Stack-based buffer overflow in the SQL/PSM (aka SQL Persistent Stored Module) Stored Procedure (SP) infrastructure in IB
IBM DB2 for Linux, UNIX and Windows 9.2, 10.1, 10.5, and 11.1 (includes DB2 Connect Server) is vulnerable to a stack-bas
Stack-based buffer overflow in IBM DB2 9.7 through FP9a, 9.8 through FP5, 10.1 through FP4, and 10.5 before FP4 on Linux
IBM DB2 9.5 uses world-writable permissions for nodes.reg, which has unspecified impact and attack vectors. Rated critic
Remote code execution in IBM Db2 11.5.0-11.5.9 and 12.1.0-12.1.4 lets unauthenticated network attackers run arbitrary co
Privilege escalation in IBM Db2 (data server versions 11.5.0-11.5.9 and 12.1.0-12.1.5) allows an attacker to submit a sp
Memory-corruption in IBM Db2's IXF file IMPORT parser lets an attacker supply a crafted IXF data file that overflows a s
Stack-based buffer overflow in the Java Stored Procedure infrastructure in IBM DB2 9.1 before FP12, 9.5 through FP9, 9.7
Directory traversal vulnerability in the UTL_FILE module in IBM DB2 and DB2 Connect 10.1 before FP1 on Windows allows re
IBM GSKit (IBM DB2 for Linux, UNIX and Windows 9.7, 10.1, 10.5, and 11.1) duplicates the PRNG state across fork() system
Integer signedness error in the db2dasrrm process in the DB2 Administration Server (DAS) in IBM DB2 9.1 through FP11, 9.
The Stored Procedure infrastructure in IBM DB2 9.5, 9.7 before FP9a, 10.1 before FP3a, and 10.5 before FP3a on Windows a
Same technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-45283
GHSA-g7p2-92pc-3r27