PostgreSQL 'to_char()' Function Buffer Overflow Vulnerability

BID:72540

Info

PostgreSQL 'to_char()' Function Buffer Overflow Vulnerability

Bugtraq ID: 72540
Class: Boundary Condition Error
CVE: CVE-2015-0241
Remote: Yes
Local: No
Published: Feb 05 2015 12:00AM
Updated: Nov 03 2015 07:43PM
Credit: Bruce Momjian
Vulnerable: Ubuntu Ubuntu Linux 12.04 LTS i386
Ubuntu Ubuntu Linux 12.04 LTS amd64
Ubuntu Ubuntu Linux 10.04 sparc
Ubuntu Ubuntu Linux 10.04 powerpc
Ubuntu Ubuntu Linux 10.04 i386
Ubuntu Ubuntu Linux 10.04 ARM
Ubuntu Ubuntu Linux 10.04 amd64
PostgreSQL PostgreSQL 9.1
PostgreSQL PostgreSQL 8.4
Oracle Enterprise Linux 6.2
Oracle Enterprise Linux 6
Gentoo Linux
Debian Linux 6.0 sparc
Debian Linux 6.0 s/390
Debian Linux 6.0 powerpc
Debian Linux 6.0 mips
Debian Linux 6.0 ia-64
Debian Linux 6.0 ia-32
Debian Linux 6.0 arm
Debian Linux 6.0 amd64
CentOS CentOS 6
Not Vulnerable:

Discussion

PostgreSQL 'to_char()' Function Buffer Overflow Vulnerability

PostgreSQL is prone to a buffer overflow vulnerability because it fails to perform adequate boundary checks.

An attacker can exploit this issue to execute arbitrary code in the context of the application. Failed exploit attempts likely result in denial-of-service conditions.

PostgreSQL versions 8.4, 9.1 and 9.4 are vulnerable.

Exploit / POC

PostgreSQL 'to_char()' Function Buffer Overflow Vulnerability

Currently, we are not aware of any working exploits. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].

Solution / Fix

PostgreSQL 'to_char()' Function Buffer Overflow Vulnerability

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

References

PostgreSQL 'to_char()' Function Buffer Overflow Vulnerability

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