Skip to main content

IBM Db2 EUVDEUVD-2026-45283

| CVE-2026-7771 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-07-17 ibm GHSA-g7p2-92pc-3r27
5.5
CVSS 3.1 · Vendor: ibm
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local Db2 session
  2. Delivery
    craft SQL containing malicious subquery structure
  3. Exploit
    submit statement for compilation
  4. Execution
    compiler enters unreachable-exit loop (CWE-835)
  5. Persist
    Db2 process traps and terminates
  6. Impact
    database 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

DB2 11.5.0 ≤11.5.9
DB2 12.1.0 ≤12.1.4

Affected Packages

euvd db2 no fix

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

Vendor (ibm) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 5.0 MEDIUM

Submitting SQL to Db2 requires at minimum a database session (PR:L); all other metrics match IBM's published vector.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (ibm).

CVSS VectorVendor: ibm

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
widely deployed enterprise database, dominant in banking and IBM-ecosystem environments
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Db2

View all
CVE-2012-4826 HIGH
8.5 Oct 20

Stack-based buffer overflow in the SQL/PSM (aka SQL Persistent Stored Module) Stored Procedure (SP) infrastructure in IB

CVE-2017-1297 HIGH POC
7.3 Jun 27

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

CVE-2014-3094 HIGH
8.5 Sep 04

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

CVE-2012-1797 CRITICAL
10.0 Mar 20

IBM DB2 9.5 uses world-writable permissions for nodes.reg, which has unspecified impact and attack vectors. Rated critic

CVE-2026-10109 CRITICAL
9.8 Jun 30

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

CVE-2026-10543 CRITICAL
9.8 Aug 12

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

CVE-2026-10534 CRITICAL
9.8 Aug 12

Memory-corruption in IBM Db2's IXF file IMPORT parser lets an attacker supply a crafted IXF data file that overflows a s

CVE-2012-2197 HIGH
7.1 Jul 25

Stack-based buffer overflow in the Java Stored Procedure infrastructure in IBM DB2 9.1 before FP12, 9.5 through FP9, 9.7

CVE-2012-3324 CRITICAL
9.0 Sep 25

Directory traversal vulnerability in the UTL_FILE module in IBM DB2 and DB2 Connect 10.1 before FP1 on Windows allows re

CVE-2018-1426 CRITICAL
9.1 Mar 22

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

CVE-2012-0711 HIGH
7.5 Mar 20

Integer signedness error in the db2dasrrm process in the DB2 Administration Server (DAS) in IBM DB2 9.1 through FP11, 9.

CVE-2013-6744 HIGH
8.5 May 30

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy