Vulnerabilities · 2006 · Php
CVE-2006-4020
Php vulnerability
scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to execute arbitrary code via a sscanf PHP function call that performs argument swapping, which increments an index past the end of an array and triggers a buffer over-read.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.securityfocus.com/archive/1/442438/30/0/threaded · Exploit
- bugs.php.net/bug.php?id=38322 · Exploit
- www.plain-text.info/sscanf_bug.txt · Exploit
- rhn.redhat.com/errata/RHSA-2006-0688.html
- rhn.redhat.com/errata/RHSA-2006-0736.html
- secunia.com/advisories/21403
- secunia.com/advisories/21467
- secunia.com/advisories/21546
- nvd.nist.gov/vuln/detail/CVE-2006-4020
- cve.org/CVERecord?id=CVE-2006-4020
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.