PHP openlog() Buffer Overflow Vulnerability

BID:7210

Info

PHP openlog() Buffer Overflow Vulnerability

Bugtraq ID: 7210
Class: Boundary Condition Error
CVE: CVE-2003-0172
Remote: Yes
Local: Yes
Published: Mar 27 2003 12:00AM
Updated: Jul 11 2009 09:06PM
Credit: The discovery of this vulnerability has been credited to <[email protected]>.
Vulnerable: PHP PHP 5.0 candidate 1
PHP PHP 4.3.7
PHP PHP 4.3.5
PHP PHP 4.3.3
+ S.u.S.E. Linux Personal 9.0 x86_64
+ S.u.S.E. Linux Personal 9.0
+ Turbolinux Home
+ Turbolinux Turbolinux 10 F...
+ Turbolinux Turbolinux Desktop 10.0
PHP PHP 4.3.2
PHP PHP 4.3.1
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1
+ OpenPKG OpenPKG Current
+ S.u.S.E. Linux Personal 8.2
Not Vulnerable:

Discussion

PHP openlog() Buffer Overflow Vulnerability

A buffer overflow has been reported in the PHP openlog() function. By passing an argument of excessive size to the function, it may be possible for an attacker to overwrite memory, resulting in a denial of service. It is also possible for an attacker to execute arbitrary code in the PHP interpreter.

This vulnerability was reported for PHP 4.3.1 and later, however it is likely that previous versions are also affected. This issue appears to affect all platforms PHP runs on.

Exploit / POC

PHP openlog() Buffer Overflow Vulnerability

The following proof of concept code has been released:

&lt;?php
openlog(str_repeat("X", 1500), LOG_PID, LOG_DAEMON);
?&gt;

The following exploit is reported to exploit this vulnerability remotely. It should be noted that the integrity of this exploit has not been verified by Symantec.

Solution / Fix

PHP openlog() Buffer Overflow Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

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