IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability

BID:37976

Info

IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability

Bugtraq ID: 37976
Class: Boundary Condition Error
CVE: CVE-2010-0462
Remote: No
Local: Yes
Published: Jan 27 2010 12:00AM
Updated: Apr 13 2015 09:02PM
Credit: Evgeny Legerov
Vulnerable: IBM Tivoli Storage Manager 6.2.1
IBM Tivoli Storage Manager 6.2
IBM DB2 Universal Database 9.7.1
IBM DB2 Universal Database 9.7
IBM DB2 Universal Database 9.1 FP5
IBM DB2 Universal Database 9.1 Fix Pack 8
IBM DB2 Universal Database 9.1 Fix Pack 7
IBM DB2 Universal Database 9.1 Fix Pack 6a
IBM DB2 Universal Database 9.1 Fix Pack 6
IBM DB2 Universal Database 9.1 Fix Pack 4a
IBM DB2 Universal Database 9.1
Not Vulnerable: IBM Tivoli Storage Manager 6.2.2
IBM DB2 Universal Database 9.1 Fix Pack 9

Discussion

IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability

IBM DB2 is prone to a heap-based buffer-overflow vulnerability because the application fails to perform adequate boundary checks on user-supplied data.

Attackers can exploit this issue to execute arbitrary code with elevated privileges or crash the affected application.

The issue affects the following:

IBM DB2 versions prior to 9.1 Fix Pack 9
IBM DB2 9.7

Other versions may also be affected.

Exploit / POC

IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability

The following proof-of-concept query is available:

SELECT REPEAT(REPEAT('1',1000),1073741825) FROM SYSIBM.SYSDUMMY1

Solution / Fix

IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability

Solution:
Updates are available. Please see the references for more information.

References

© 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