CVE-2006-4020

Public Exploit

Description

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.

4.6
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 3.88% Top 15%
Vendor Advisory redhat.com Vendor Advisory mandriva.com Vendor Advisory novell.com Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory novell.com Vendor Advisory redhat.com Vendor Advisory novell.com Vendor Advisory sgi.com Vendor Advisory gentoo.org Vendor Advisory redhat.com Vendor Advisory novell.com Vendor Advisory securityfocus.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://securitytracker.com/id?1016984 vdb entry
http://www.plain-text.info/sscanf_bug.txt exploit url repurposed
http://www.php.net/release_5_1_5.php
http://www.securityfocus.com/bid/19415 vdb entry
http://secunia.com/advisories/21768 third party advisory
http://secunia.com/advisories/21403 third party advisory
http://www.redhat.com/support/errata/RHSA-2006-0669.html vendor advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2006:144 vendor advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11062 signature vdb entry
http://secunia.com/advisories/21847 third party advisory
http://www.novell.com/linux/security/advisories/2006_20_sr.html vendor advisory
http://secunia.com/advisories/22487 third party advisory
http://www.ubuntu.com/usn/usn-342-1 vendor advisory
http://support.avaya.com/elmodocs2/security/ASA-2006-221.htm
http://secunia.com/advisories/22039 third party advisory
http://rhn.redhat.com/errata/RHSA-2006-0688.html vendor advisory
http://bugs.php.net/bug.php?id=38322 patch exploit
http://secunia.com/advisories/21683 third party advisory
http://secunia.com/advisories/23247 third party advisory
http://secunia.com/advisories/21467 third party advisory
http://www.novell.com/linux/security/advisories/2006_19_sr.html vendor advisory
http://secunia.com/advisories/22004 third party advisory
http://support.avaya.com/elmodocs2/security/ASA-2006-222.htm
http://secunia.com/advisories/22538 third party advisory
http://www.redhat.com/support/errata/RHSA-2006-0682.html vendor advisory
http://secunia.com/advisories/21546 third party advisory
http://secunia.com/advisories/21608 third party advisory
http://secunia.com/advisories/22440 third party advisory
http://secunia.com/advisories/22069 third party advisory
http://www.securityfocus.com/archive/1/442438/30/0/threaded patch vendor advisory mailing list exploit
http://support.avaya.com/elmodocs2/security/ASA-2006-223.htm
http://www.novell.com/linux/security/advisories/2006_22_sr.html vendor advisory
http://www.vupen.com/english/advisories/2006/3193 vdb entry
http://www.php.net/ChangeLog-5.php#5.1.5
ftp://patches.sgi.com/support/free/security/advisories/20061001-01-P.asc vendor advisory
http://security.gentoo.org/glsa/glsa-200608-28.xml vendor advisory
http://securityreason.com/securityalert/1341 third party advisory
http://rhn.redhat.com/errata/RHSA-2006-0736.html vendor advisory
http://www.novell.com/linux/security/advisories/2006_52_php.html vendor advisory

Frequently Asked Questions

What is the severity of CVE-2006-4020?
CVE-2006-4020 has been scored as a medium severity vulnerability.
How to fix CVE-2006-4020?
To fix CVE-2006-4020, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2006-4020 being actively exploited in the wild?
It is possible that CVE-2006-4020 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~4% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.