IBM Support

Security Bulletin: IBM® Db2® performs unsafe deserialization in DB2 JDBC driver (CVE-2017-1677)

Security Bulletin


Summary

The Db2 JDBC driver deserializes an object unsafely potentially leading to arbitrary code execution.

Vulnerability Details

CVEID: CVE-2017-1677
DESCRIPTION: IBM Data Server Driver for JDBC and SQLJ deserializes the contents of /tmp/connlicj.bin which leads to object injection and potentially arbitrary code execution depending on the classpath.
CVSS Base Score: 7.4
CVSS Temporal Score: See https://exchange.xforce.ibmcloud.com/vulnerabilities/133999 for the current score
CVSS Environmental Score*: Undefined
CVSS Vector: (CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)

Affected Products and Versions

All fix pack levels of IBM Db2 V9.7, V10.1, V10.5, and V11.1 editions on all platforms are affected.

Remediation/Fixes

The recommended solution is to apply the appropriate fix for this vulnerability.

FIX:

The fix for DB2 V11.1 is in V11.1.3 FP3, available for download from Fix Central.

Customers running any vulnerable fixpack level of an affected Program, V9.7, V10.1, and V10.5, can download the special build containing the interim fix for this issue from Fix Central. These special builds are available based on the most recent fixpack level for each impacted release: DB2 V9.7 FP11, V10.1 FP6, and V10.5 FP9. They can be applied to any affected fixpack level of the appropriate release to remediate this vulnerability.

 

 
Release Fixed in fix pack APAR Download URL Remediation/First Fix
V9.7 TBD IT23799 Special Build for V9.7 FP11:
AIX 64-bit
HP-UX 64-bit
Linux 32-bit, x86-32
Linux 64-bit, x86-64
Linux 64-bit, POWER™ big endian
Linux 64-bit, System z®, System z9® or zSeries®
Solaris 64-bit, SPARC
Solaris 64-bit, x86-64
Windows 32-bit, x86
Windows 64-bit, x86
  • JCC version 3.72.41/4.23.48
    See workaround or contact support
V10.1 TBD IT23798 Special Build for V10.1 FP6:
AIX 64-bit
HP-UX 64-bit
Linux 32-bit, x86-32
Linux 64-bit, x86-64
Linux 64-bit, POWER™ big endian
Linux 64-bit, System z®, System z9® or zSeries®
Solaris 64-bit, SPARC
Solaris 64-bit, x86-64
Windows 32-bit, x86
Windows 64-bit, x86
  • JCC version 3.69.75/4.19.76
    See workaround or contact support
V10.5 FP10 IT23797 https://www-01.ibm.com/support/docview.wss?uid=swg24045012
  • JCC version 3.69.76/4.19.77
    See workaround or contact support
V11.1.3 FP3 IT23794 https://www-01.ibm.com/support/docview.wss?uid=swg24044630
  • JCC version 3.72.41/4.23.48
    See workaround or contact support

Workarounds and Mitigations

The user can set the default output directory to a more secure location for the connlicj.bin file by modifying the db2.jcc.outputDirectory property. The driver will write the cache file to the configured location which cannot be accessed without proper authorization, which will avoid the object injection.

Get Notified about Future Security Bulletins

References

Off

Acknowledgement

The vulnerability was reported to IBM by Martin Strand.

Change History

March 14, 2018: Original Version Published.
March 23, 2018: Published remaining platforms for V9.7.
July 11, 2018: Updated 10.5 version with a link to 10.5 FP10 image and corrected JCC version numbers.

*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 Security Bulletin.

Disclaimer

Review the IBM security bulletin disclaimer and definitions regarding your responsibilities for assessing potential impact of security vulnerabilities to your environment.

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.7;10.1;10.5;11.1","Edition":"Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Express;Express-C;Personal;Workgroup Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 July 2018

UID

swg22012896