CVE-2006-4020
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
2.011%
chance of exploitation in the next 30 days
higher than 81.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 3
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Timeline
- 2006-08-08Published by the CNA20:00 UTC
- 2006-08-16First Exploit-DB entry (EDB-ID 2193)8 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 2193 | local | linux | 2006-08-16 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | 4.0no fix listed4.0.0no fix listed4.0.1no fix listed4.0.2no fix listed4.0.3no fix listed(+39 more) | not listednot listednot listednot listednot listed |
References
- http://bugs.php.net/bug.php?id=38322
- http://www.securityfocus.com/archive/1/442438/30/0/threaded
- ftp://patches.sgi.com/support/free/security/advisories/20061001-01-P.asc
- http://rhn.redhat.com/errata/RHSA-2006-0688.html
- http://rhn.redhat.com/errata/RHSA-2006-0736.html
- http://security.gentoo.org/glsa/glsa-200608-28.xml
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:144
- http://www.novell.com/linux/security/advisories/2006_19_sr.html
- http://www.novell.com/linux/security/advisories/2006_20_sr.html
- http://www.novell.com/linux/security/advisories/2006_22_sr.html
- http://www.novell.com/linux/security/advisories/2006_52_php.html
- http://www.redhat.com/support/errata/RHSA-2006-0669.html
- http://www.redhat.com/support/errata/RHSA-2006-0682.html
- http://www.ubuntu.com/usn/usn-342-1
- http://www.plain-text.info/sscanf_bug.txt
- http://secunia.com/advisories/21403
- http://secunia.com/advisories/21467
- http://secunia.com/advisories/21546
- http://secunia.com/advisories/21608
- http://secunia.com/advisories/21683
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2006-4020'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2006-4020'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2006-4020'curl 'https://api.contrastcyber.com/cve_products/CVE-2006-4020'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).