Flash (Alert)

Abstract

Vulnerability in IBM DB2 could allow an authenticated user, without proper authorization, to overwrite JAR files.

Content

VULNERABILITY DETAILS

CVE ID: CVE-2012-2194

DESCRIPTION:

The IBM DB2 products listed below contain a security vulnerability that could allow an authenticated user, without proper authority, to overwrite JAR files.

SQLJ.DB2_INSTALL_JAR is a built-in stored procedure used to install JAR files to be used by Java stored procedures. A malicious user could use the stored procedure to replace existing JAR files and achieve remote code execution.

To exploit the vulnerability, the user would need to have valid security credentials to connect to the database and execute the SQLJ.DB2_INSTALL_JAR stored procedure. By default, PUBLIC is granted EXECUTE privilege to SQLJ.DB2_INSTALL_JAR. To reduce the exposure, revoke the EXECUTE privilege from PUBLIC and only grant EXECUTE to users that have a need to install JAR files.

Mitigation: To exploit the vulnerability, the user would need to be able to connect to the database and call the stored procedure SQLJ.DB2_INSTALL_JAR. Revoking EXECUTE privilege from PUBLIC on the stored procedure would allow you to control who can call the stored procedure. Use the following SQL statement to revoke the privilege:

REVOKE EXECUTE ON SQLJ.DB2_INSTALL_JAR FROM PUBLIC

To obtain more information on the REVOKE routine privileges statement, see the following for DB2 V10.1. The statement syntax is the same for other DB2 releases.

*The CVSS Environment Score is customer environment specific and will ultimately impact the Overall CVSS Score. Customers can evaluate the impact of this vulnerability in their environments by accessing the links in the Reference section of this Flash.

Note: According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS

Note: IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.