Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local Db2 session
-
Deliverycraft SQL containing malicious subquery structure
-
Exploitsubmit statement for compilation
-
Executioncompiler enters unreachable-exit loop (CWE-835)
-
PersistDb2 process traps and terminates
-
Impactdatabase instance denies service to all users
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a local system foothold on the IBM Db2 host or an active database session capable of submitting SQL statements for compilation. The CVSS vector (AV:L/PR:N/UI:R) indicates a local attack surface with user interaction required - the compile action must be actively initiated by a user, suggesting the crash is triggered during a client-initiated query preparation or execution phase. The SQL statement must contain subqueries structured in a way that exercises the defective compiler code path. Exploitation is strictly limited to IBM Db2 versions 11.5.0-11.5.9 and 12.1.0-12.1.4; other database platforms and out-of-range Db2 versions are not affected. Impact is limited entirely to availability - no data exfiltration or integrity compromise is possible through this vulnerability. |
| Impact | The CVSS 5.5 Medium score reflects a local, availability-only denial-of-service scenario with no confidentiality or integrity impact (C:N/I:N/A:H). The AV:L attack vector significantly constrains exploitability - the attacker must have a local system foothold or an active database session. UI:R further limits exploitation to scenarios where a user must actively initiate the compile action. No EPSS score is present in the available data, no CISA KEV listing exists, and no public exploit code has been identified - all signals that align with a low-urgency, routine patch cycle prioritization rather than emergency response. The primary real-world threat model is an insider or a compromised low-privilege database account intentionally causing service disruption. The absence of confidentiality and integrity impact means this is purely an availability risk. CVSS PR:N is notable - the IBM-published vector claims no privileges are required despite database session access being a practical prerequisite; security teams should verify whether unauthenticated local paths to the compiler exist or whether PR:L is more accurate for their deployment. |
| Exploit ScenarioDerived | A local user with an active IBM Db2 database session constructs a SQL statement embedding a specially structured subquery pattern and submits it for compilation. The Db2 query compiler enters a CWE-835 unreachable-exit loop, consuming CPU resources until the database process traps and terminates - taking down the entire Db2 instance and denying service to all connected users. No public exploit code has been identified; the trigger is a crafted SQL string requiring no special tools. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 17, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Db2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
DescriptionCVE.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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
EUVD-2026-45283
GHSA-g7p2-92pc-3r27
NVD
CVE.org
EPSS
VulDB
Exploit-DB