Title: IBM DB2 JDBC Applet Server Buffer Overflow Vulnerability
Severity: CRITICAL
Description:
A remotely exploitable buffer overflow exists in IBM DB2 JDBC Applet Server. This issue is due to insufficient bounds checking of data included in requests that are passed to the JDBC service.
It is reported that clients can connect to the JDBC Applet Server over TCP port 6789. The connection packet includes the clients' authenticaion credentials including a username and password, the db2java.zip version, and the name of the database the clients are attempting to connect to.
The vulnerability can be exploited by connecting to a vulnerable server with a connection packet containing a username of 2200 bytes or more then disconnecting. The attacker must then reconnect to the server and provide a shorter username but specify the db2java.zip version to an unexpected value such as 544 unicode bytes of \x00\x41. Reportedly, the application generates an error, removes the null terminator, and concatenates the original malformed username to the db2java.zip version. This is copied to a static buffer, resulting in an overflow condition.
A successful attack can cause memory regions adjacent to the destination buffer to be overrun with the superfluous data. This will result in memory corruption that could be leveraged to control execution flow of the program.
Successful exploitation may allow execution of arbitrary code with the privilege of the db2jd service.
This is likely one of the issues announced in BIDs 11089 and 11327. It is now being assigned its own BID since the vendor has provided additional technical information.
Affected Products:
- IBM DB2 Universal Database for AIX 7.0.0
- IBM DB2 Universal Database for AIX 7.1.0
- IBM DB2 Universal Database for AIX 7.2.0
- IBM DB2 Universal Database for AIX 8.0.0
- IBM DB2 Universal Database for AIX 8.1.0
- IBM DB2 Universal Database for HP-UX 7.0.0
- IBM DB2 Universal Database for HP-UX 7.1.0
- IBM DB2 Universal Database for HP-UX 7.2.0
- IBM DB2 Universal Database for HP-UX 8.0.0
- IBM DB2 Universal Database for HP-UX 8.1.0
- IBM DB2 Universal Database for Linux 7.0.0
- IBM DB2 Universal Database for Linux 7.1.0
- IBM DB2 Universal Database for Linux 7.2.0
- IBM DB2 Universal Database for Linux 8.0.0
- IBM DB2 Universal Database for Linux 8.1.0
- IBM DB2 Universal Database for Solaris 7.0.0
- IBM DB2 Universal Database for Solaris 7.1.0
- IBM DB2 Universal Database for Solaris 7.2.0
- IBM DB2 Universal Database for Solaris 8.0.0
- IBM DB2 Universal Database for Solaris 8.1.0
- IBM DB2 Universal Database for Windows 7.1.0
- IBM DB2 Universal Database for Windows 7.2.0
- IBM DB2 Universal Database for Windows 8.0.0
- IBM DB2 Universal Database for Windows 8.1.0
References:
- IBM: APARs included in DB2 UDB Version 8 FixPak 6a and FixPak 7a
- IBM: DB2 V8 FixPaks 6 and 7 replaced with FixPaks 6a and 7a
- IBM: IBM responds to DB2 UDB security vulnerability reports
- IBM: IY61492: SECURITY: UPDATE TO JDBC LISTENER
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.