Heap-based buffer overflow in PHP - CVE-2006-1990
Published: October 18, 2018 / Updated: June 8, 2025
PHP
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing data within the wordwrap function in string.c in PHP 4.4.2 and 5.1.2 might allow context-dependent attackers to execute arbitrary code via certain long arguments that cause a small buffer to be allocated, which triggers a heap-based buffer overflow in a memcpy function call. A remote attacker can pass a specially crafted file to the affected application, trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
How to mitigate CVE-2006-1990
Sources
- ftp://patches.sgi.com/support/free/security/advisories/20060701-01-U
- http://docs.info.apple.com/article.html?artnum=304829
- http://lists.apple.com/archives/security-announce/2006/Nov/msg00001.html
- http://rhn.redhat.com/errata/RHSA-2006-0549.html
- http://secunia.com/advisories/19803
- http://secunia.com/advisories/20052
- http://secunia.com/advisories/20222
- http://secunia.com/advisories/20269
- http://secunia.com/advisories/20676
- http://secunia.com/advisories/21031
- http://secunia.com/advisories/21050
- http://secunia.com/advisories/21125
- http://secunia.com/advisories/21135
- http://secunia.com/advisories/21252
- http://secunia.com/advisories/21564
- http://secunia.com/advisories/21723
- http://secunia.com/advisories/22225
- http://secunia.com/advisories/23155
- http://security.gentoo.org/glsa/glsa-200605-08.xml
- http://securitytracker.com/id?1015979
- http://support.avaya.com/elmodocs2/security/ASA-2006-160.htm
- http://support.avaya.com/elmodocs2/security/ASA-2006-175.htm
- http://www.infigo.hr/en/in_focus/advisories/INFIGO-2006-04-02
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:091
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:122
- http://www.novell.com/linux/security/advisories/2006_31_php.html
- http://www.redhat.com/support/errata/RHSA-2006-0501.html
- http://www.redhat.com/support/errata/RHSA-2006-0568.html
- http://www.securityfocus.com/archive/1/447866/100/0/threaded
- http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
- http://www.ubuntu.com/usn/usn-320-1
- http://www.us-cert.gov/cas/techalerts/TA06-333A.html
- http://www.vupen.com/english/advisories/2006/1500
- http://www.vupen.com/english/advisories/2006/4750
- https://exchange.xforce.ibmcloud.com/vulnerabilities/26001
- https://issues.rpath.com/browse/RPL-683
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9696