CVE-2004-0795

IBM DB2 Universal Database 8.1 - Local Privilege Escalation via DB2REMOTECMD Named Pipe

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2004-0795. PoCs published by MC, including Metasploit module auxiliary/admin/db2/db2rcmd.

AI-analyzed exploit summary This Metasploit module exploits a vulnerability in IBM DB2's Remote Command Server (CVE-2004-0795) by sending arbitrary commands to the DB2REMOTECMD named pipe, potentially leading to administrator privileges. It requires authentication and leverages SMB for communication.

Description

DB2 8.1 remote command server (DB2RCMD.EXE) executes the db2rcmdc.exe program as the db2admin administrator, which allows local users to gain privileges via the DB2REMOTECMD named pipe.

Exploits (1)

metasploit WORKING POC
by MC · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/admin/db2/db2rcmd.rb

This Metasploit module exploits a vulnerability in IBM DB2's Remote Command Server (CVE-2004-0795) by sending arbitrary commands to the DB2REMOTECMD named pipe, potentially leading to administrator privileges. It requires authentication and leverages SMB for communication.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: IBM DB2 Universal Database 8.1
Auth required
Prerequisites: Valid SMB credentials (username/password) · Access to the DB2REMOTECMD named pipe
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Various Sources x_refsource_misc
http://www.nextgenss.com/advisories/db2rmtcmd.txt
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/15420
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=107885081414173&w=2
Vendor Advisory vendor-advisory x_refsource_aixapar
http://www-1.ibm.com/support/docview.wss?uid=swg1IY53894
Patch, Vendor Advisory vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/9821

Scores

EPSS 0.3191
EPSS Percentile 96.9%

Details

Status published
Products (1)
ibm/db2_universal_database 8.1
Published Oct 20, 2004
Tracked Since Feb 18, 2026