Pentest Limited
www.pentest.co.uk
Security Advisory
IBM DB2 LOAD Command Stack Overflow Vulnerability
Author: Mark Rowe
Announcement date: 1st October 2003
Advisory Reference: ptl-2003-01
DB2 is IBM's relational database software. The IBM DB2 LOAD command, moves data from files, named pipes, or devices into a DB2 table. This command is vulnerable to a stack based overflow that allows an attacker with "Connect" privileges to the database to execute arbitrary code on the vulnerable machine, by default in the context of the Administrators group on Windows and typically db2as or db2inst1 on Linux.
The vulnerability is triggered by issuing a carefully crafted LOAD command.
IBM DB2 Universal Data Base v7.2 for Linux/x86 is vulnerable.
IBM DB2 Universal Data Base v7.2 for Windows is vulnerable.
According to the vendor IBM DB2 Universal Data Base v8.1 is also vulnerable.
Other IBM DB2 versions and target platforms were not available for testing, but may be vulnerable as well.
The vendor stated that 'the problem was in common code and therefore affected all platforms and both v7 and v8 (though not all of those would have been exploitable).'
Issue is fixed in Fixpak 10/10a for DB2 v7.2.
Issue is fixed in Fixpak 2 for DB2 v8.1.
Fixpaks are available at:
http://www-3.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/download.d2w/report
This vulnerability was discovered by Mark Rowe from Pentest Limited.