Skip to main content

IBM Db2 CVE-2024-47118

HIGH
Stack-based Buffer Overflow (CWE-121)
2025-11-07 psirt@us.ibm.com
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain Db2 database session on target instance
  2. Exploit
    Craft malformed SQL query
  3. Execution
    Submit query to trigger stack buffer overflow (CWE-121)
  4. Impact
    Db2 server process crashes, denying service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the ability to submit a specially crafted SQL query to an affected Db2 LUW server (10.5.x, 11.1.x, 11.5.x, or 12.1.x, including Db2 Connect Server) on Linux, UNIX, or Windows, which in practice presupposes network reachability to the database listener and an established database session. The CVSS vector claims PR:N (no privileges), but query submission normally requires a valid authenticated Db2 connection, so credentialed access is a likely practical prerequisite that limits remote anonymous exploitation; no user interaction is required and the outcome is a server crash (availability only). Limiting factors: exposure is reduced where the Db2 instance is not reachable by untrusted clients and where query submission is restricted to authenticated, least-privilege accounts.

Impact

This is a network-facing denial-of-service flaw in IBM Db2 LUW rated CVSS 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), with the entire score driven by availability impact (A:H) - there is no confidentiality or integrity exposure. Corroborating signals point to LOW real-world urgency rather than an emergency: EPSS is only 0.14% (34th percentile), the CVE is NOT on CISA KEV, and no public exploit code is identified, so there is no public exploit identified at time of analysis. The high CVSS is therefore a high-severity-but-low-current-risk case typical of availability-only bugs. One conflict should be flagged: the vector asserts PR:N (unauthenticated), yet the description requires submitting a 'specially crafted query,' which in practice requires an established Db2 database session and therefore valid credentials - CVSS indicates no privileges but the attack mechanism implies an authenticated database connection; verify the required privilege level with IBM. CWE-121 (stack-based buffer overflow) could in principle imply memory corruption beyond a crash, but IBM scored only A:H with C:N/I:N, indicating the realistic outcome is a server crash, not code execution.

Exploit ScenarioDerived

An attacker with the ability to submit SQL to a reachable Db2 instance (per the description's 'specially crafted query') sends a malformed query that overflows a stack buffer during parsing/processing, causing the Db2 server process to crash and interrupting all dependent applications. No public exploit code is identified, and because the impact is a crash rather than code execution, exploitation yields service disruption rather than data compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Oct 02, 2026

A specially crafted SQL query can crash IBM Db2 for Linux, UNIX and Windows, including Db2 Connect Server, producing a denial of service in versions 10.5.0 through 10.5.11, 11.1.0 through 11.1.4.7, 11.5.0 through 11.5.9, and 12.1.0 through 12.1.3. The issue is scored CVSS 7.5 with availability-only impact (C:N/I:N/A:H), and while the published vector claims PR:N, our independent assessment holds that submitting the malicious query in practice presupposes network reachability to the database listener and a valid authenticated Db2 session, so credentialed access is the likely prerequisite. No public exploit code has been identified at time of analysis and there is no evidence of active exploitation; EPSS is low at 0.14% (34th percentile), consistent with a targeted, availability-focused flaw in an enterprise database.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:21 CVSS 6.5

IBM Db2 10.5.0 through 10.5.11, 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. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, low attack complexity. No vendor patch available.

RemediationAI

The primary fix is to move off the affected release ranges listed in IBM's advisory at https://www.ibm.com/support/pages/node/7250473; no exact fix-pack version is confirmed in the available data, so obtain the applicable fixed build for your train (above 10.5.11, 11.1.4.7, 11.5.9, or 12.1.3 as documented by IBM) rather than assuming a specific level. Until the upgrade is applied, compensating controls should target the fact that exploit delivery requires a query to reach the Db2 engine: restrict network access to the Db2 listener port (default 50000) to known application subnets via firewall or host-based rules, which removes the exposure path but can break legitimate remote clients and distributed Db2 Connect topologies; enforce least-privilege, dedicated service accounts for query submission and revoke ad-hoc query access for untrusted users, which constrains who can trigger the crash but does not protect against a compromised application account; enable database monitoring and alerting on abnormal server termination and rapid connection churn so repeated crash attempts are detected quickly; and where available, apply workload/query timeouts or a resource governor to cap query complexity and cost, accepting that this may reject legitimate heavy analytical queries. Note that authentication alone is not a reliable control if attackers can obtain any valid low-privilege database account, since the flaw does not appear to require elevated rights once a session exists.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause class is CWE-121, stack-based buffer overflow, which is consistent with the reference tags flagging 'Buffer Overflow', 'Stack Overflow', 'Denial Of Service' and 'Db2'. Rather than a classic remote code execution primitive, the practical outcome here is memory corruption in the Db2 LUW engine during parsing or execution of a crafted query, terminating the database process and rendering the instance unavailable to connected clients. CPE data confirms the affected platform matrix as ibm:db2 on linux, unix and windows, and IBM's advisory scope explicitly includes Db2 Connect Server, meaning both direct database deployments and gateway/connectivity tiers are in scope. The published CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) implies an unauthenticated network attacker, but our assessment downgrades the privilege requirement to PR:L because query submission to a Db2 server normally requires an established, authenticated connection; the discrepancy is material to exposure modeling but does not change the availability-only impact profile. There is no confidentiality or integrity component, and the attack requires no user interaction.

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Submitting a query requires an authenticated Db2 session, so PR:L rather than PR:N; network-reachable with low complexity, availability-only crash so C:N/I:N/A:H.

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
Analysis Updated
Oct 02, 2026 - 00:28 vuln.today
v2 - CVSS changed
Severity Changed
Oct 02, 2026 - 00:22 NVD
MEDIUM HIGH
CVSS changed
Oct 02, 2026 - 00:22 NVD
6.5 (MEDIUM) 7.5 (HIGH)
CVE Published
Nov 07, 2025 - 19:15 nvd
MEDIUM 6.5

DescriptionNVD

IBM Db2 10.5.0 through 10.5.11, 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.

Executive ViewAI

Why It Matters

IBM Db2 for Linux, UNIX, and Windows, including Db2 Connect Server, is affected by a high-severity vulnerability that allows an attacker to crash the database using a specially crafted SQL query, resulting in a denial of service. No vendor-released patch is identified at time of analysis, and no public exploit has been identified at time of analysis, with a low EPSS score of 0.1% indicating a low likelihood of exploitation. However, because Db2 often supports mission-critical applications, any downtime could disrupt business operations, so leadership should ensure interim mitigations are in place and monitor for vendor patches.

Business Impact: High
Compensating Controls

Restrict network access to the Db2 listener to trusted hosts, enforce strong authentication and least privilege, deploy database activity monitoring to detect malicious SQL patterns, and maintain offline backups. Monitor IBM advisories for patch availability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
Prevalence
High
IBM Db2 LUW is a widely deployed enterprise database across many organizations
Data Quality
3 sources
Confidence: Low

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

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

Affected Products (CPE)NVD

cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:linux:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:unix:*:*
cpe:2.3:a:ibm:db2:*:*:*:*:*:windows:*:*

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