CVE-2026-18166: 
IBM Db2 vulnerability analysis and mitigation

Overview

CVE-2026-18166 is an improper access control vulnerability in IBM Db2 that allows a remote authenticated attacker to obtain sensitive information by exploiting insufficient authorization controls in the CREATE WRAPPER command. The vulnerability affects IBM Db2 versions 11.5.0 through 11.5.9 and 12.1.0 through 12.1.5 for Linux, UNIX, and Windows, including DB2 Connect Server. It was disclosed on October 8, 2026, with IBM publishing the advisory and NVD publishing on October 12, 2026. The CVSS v3.1 base score is 7.7 (High) (IBM Advisory, GitHub Advisory).

Technical details

The root cause is classified as CWE-284 (Improper Access Control), where the CREATE WRAPPER command in IBM Db2 fails to properly enforce authorization checks, enabling a privileged database user to load arbitrary libraries from the host filesystem. This mechanism allows the attacker to read sensitive files from the underlying operating system beyond the intended database scope. The attack vector is network-based, requires low privileges (a valid authenticated database account), no user interaction, and results in a scope change — meaning the impact extends beyond the database component itself to the host system (IBM Advisory, GitHub Advisory).

Impact

Successful exploitation allows a remote authenticated attacker to read sensitive files from the host filesystem by abusing the arbitrary library loading capability of the CREATE WRAPPER command. The confidentiality impact is rated High with a changed scope, meaning data outside the database — such as OS-level configuration files, credentials, or private keys — may be exposed. Integrity and availability are not directly impacted by this vulnerability (IBM Advisory, GitHub Advisory).

Exploitability

As of the disclosure date, there are no known public proof-of-concept exploits, no reported in-the-wild exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is 0.0, indicating a very low probability of exploitation in the near term. Exploitation requires a valid authenticated database account, which limits the attack surface compared to unauthenticated vulnerabilities (IBM Advisory, GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify IBM Db2 instances running versions 11.5.0–11.5.9 or 12.1.0–12.1.5 on Linux, UNIX, or Windows, accessible over the network.
  2. Authentication: Obtain valid database credentials (low-privilege database user account is sufficient).
  3. Issue malicious CREATE WRAPPER command: Connect to the Db2 instance and execute a CREATE WRAPPER SQL statement that references a crafted or attacker-controlled shared library path on the host filesystem.
  4. Arbitrary library loading: Db2 loads the specified library without adequate authorization checks, allowing the attacker to read sensitive files from the host OS filesystem (e.g., /etc/passwd, private keys, or application configuration files).
  5. Exfiltrate data: Retrieve the sensitive information exposed through the library loading mechanism (IBM Advisory).

Indicators of compromise

  • Logs: Db2 diagnostic logs (db2diag.log) showing unexpected CREATE WRAPPER commands issued by low-privilege or unusual user accounts; audit log entries for CREATE WRAPPER SQL statements referencing non-standard library paths.
  • File System: Evidence of shared library files placed in unusual directories accessible by the Db2 process; unexpected access to sensitive OS files (e.g., /etc/shadow, /etc/passwd, SSH keys) by the Db2 service account.
  • Network: Database connections from unexpected source IPs followed by CREATE WRAPPER activity in audit logs.
  • Process: Db2 engine processes loading shared libraries from non-standard or user-writable directories (IBM Advisory).

Mitigation and workarounds

IBM has released patches addressing this vulnerability; administrators should apply the relevant fix packs for their version branch (11.5.x or 12.1.x) as detailed in the IBM security bulletin. Until patching is possible, restrict CREATE WRAPPER command privileges to only highly trusted database administrators, and audit existing grants of this privilege. Review and tighten Db2 service account OS-level permissions to limit access to sensitive host filesystem paths (IBM Advisory).

Community reactions

The vulnerability was picked up by AUSCERT (ESB-2026.12418) shortly after IBM's disclosure, indicating standard tracking by national CERTs. No notable independent researcher commentary, social media discussion, or significant media coverage has been identified beyond routine vulnerability database aggregation (IBM Advisory).

Additional resources


Source: This report was generated using AI

Related IBM Db2 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-18166HIGH7.7
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoOct 12, 2026
CVE-2026-78404MEDIUM6.5
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoOct 12, 2026
CVE-2026-105466MEDIUM6.5
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoOct 12, 2026
CVE-2026-104332MEDIUM5.5
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoOct 12, 2026
CVE-2026-104364LOW3.3
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoOct 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management