Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local shell access to Db2 host
-
DeliveryExecute db2flacc with crafted overflow input
-
ExploitCorrupt stack buffer and overwrite return address
-
ExecutionRedirect execution to attacker payload
-
ImpactExecute arbitrary code with db2 group privileges
Vulnerability Assessment
| Weakness |
CWE
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 a local, authenticated OS session on a host running a vulnerable version of IBM Db2 (11.5.0-11.5.9 or 12.1.0-12.1.4) and the ability to execute the db2flacc binary directly, which is available to any standard OS user account (PR:L per CVSS). No Db2 database credentials, administrative database role, or special configuration state is required. Remote unauthenticated exploitation is not possible - the attack vector is strictly local (AV:L). Exploitation is further constrained by SSVC automatable: no, meaning scripted mass exploitation across multiple targets is not straightforwardly achievable. The primary limiting factor for most organizations is the prerequisite of local shell access to the Db2 host itself. |
| Impact | The CVSS 3.1 score of 7.8 (High) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H accurately reflects the serious impact potential: any local user can trigger the overflow without user interaction, achieving full confidentiality, integrity, and availability compromise against the Db2 instance. However, real-world exploitation probability is low - EPSS sits at just 0.12% (2nd percentile), and SSVC rates exploitation as none and automatable as no, confirming no evidence of active or mass exploitation. SSVC technical impact is total, consistent with the CVSS high-impact ratings. The AV:L constraint is the primary risk reducer: remote unauthenticated exploitation is impossible, limiting realistic attacker population to those with local shell access on the Db2 host. Priority is highest for organizations running Db2 on shared multi-tenant systems, jump boxes, or environments where non-administrative users hold local OS accounts on database servers. For tightly access-controlled, single-tenant deployments where only authorized DBAs have shell access, urgency is lower but patching remains recommended. |
| Exploit ScenarioDerived | A standard OS user with a shell account on the Db2 server invokes the db2flacc setgid binary with a crafted argument or input value exceeding the bounds of an internal stack buffer. The overflow corrupts the saved return address, redirecting execution to attacker-controlled shellcode or a ROP chain that runs under the elevated group identity of db2flacc, granting the attacker control over Db2 instance files and administrative data without any database credentials. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 05, 2026
Stack-based buffer overflow in IBM Db2's setgid helper binary db2flacc allows a local user with low privileges to overwrite the stack frame and execute arbitrary code with the elevated group permissions of the binary. Both Db2 11.5.x (through 11.5.9) and 12.1.x (through 12.1.4) are affected. No public exploit has been identified and exploitation status is confirmed as none per SSVC, though IBM has released a patch and the SSVC technical impact is rated total, warranting prompt remediation on shared-access Db2 hosts.
Earlier versions of this analysis (1)
Local privilege escalation in IBM Db2 11.5.0-11.5.9 and 12.1.0-12.1.4 arises from a stack-based buffer overflow in the setgid helper binary db2flacc, allowing a local user to corrupt memory and execute code with the elevated group privileges the helper runs under. IBM has released a fix, and no public exploit has been identified at time of analysis. With CVSS 8.4 (AV:L) the flaw is a serious local escalation vector but not remotely reachable.
RemediationAI
IBM has released a patch for this vulnerability; administrators should consult the IBM support advisory at https://www.ibm.com/support/pages/node/7279466 to identify the exact target fixpack or interim fix applicable to their installed version of Db2 11.5.x or 12.1.x - the specific patched build version is not enumerated in the available intelligence and must be confirmed directly from the advisory. While awaiting patching, compensating controls include restricting local shell access to Db2 hosts exclusively to authorized database administrators, thereby eliminating the PR:L foothold required for exploitation; note that removing general user shell access may impact application-tier workflows that rely on local OS connectivity. Restricting or removing setgid permissions on db2flacc itself is theoretically possible but may break Db2 file access control operations and should be validated thoroughly in a non-production environment before deployment. Auditing which OS accounts hold local login rights on Db2 servers reduces the realistic attacker population in the interim.
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
The vulnerability resides in db2flacc, a setgid helper utility shipped with IBM Db2 that runs with elevated group-level privileges to perform file access control operations on behalf of the database engine. CWE-121 (Stack-based Buffer Overflow) identifies the root cause as improper bounds checking before copying attacker-controlled data into a fixed-size stack buffer, enabling overwrite of the saved return address or adjacent stack data. Setgid binaries are a classic local privilege escalation vector: successful exploitation causes execution to resume under the effective group identity of db2flacc (typically the db2 administrative group), granting unauthorized access to database files, instance directories, and related administrative operations without requiring any database credentials. Affected CPE is cpe:2.3:a:ibm:db2:*:*:*:*:*:*:*:*, spanning the 11.5 and 12.1 release trains.
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:L/UI:N/S:U/C:H/I:H/A:H
Local setgid binary requires shell access (AV:L, PR:L); stack overflow is straightforward to trigger with no interaction (AC:L, UI:N); db2 group compromise yields full instance-level C/I/A impact with no scope change.
Primary rating from Vendor (ibm).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
IBM Db2 11.5.0 through 11.5.9, and 12.1.0 through 12.1.4 is vulnerable to buffer overflow in setgid helper db2flacc.
Executive ViewAI
IBM Db2 versions 11.5.x and 12.1.x contain a local privilege escalation vulnerability enabling any local user to gain elevated group-level permissions, creating insider threat and data access risks on shared database hosts. Organizations running these versions on systems with untrusted local users face potential unauthorized database access and lateral movement exposure. Vendor patches are available and should be deployed immediately to shared or multi-tenant Db2 deployments.
Apply vendor patch.
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
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.
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-51250
GHSA-355r-5322-3222
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB