CVE-2006-4020
scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to...
CVE-2006-4020 is a medium vulnerability (CVSS 4.6) in Php, published August 8, 2006. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.01%, the 80th percentile. Fixed in php 0:4.3.2-36.ent.
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.
Exploit likelihood
What each source reports
NVD Score used
4.6
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.
- Record
CVE-2006-4020- CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2006-4020- Updated
- 2026-11-02
EUVDEUVD-2006-4013 No score
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.
- Record
EUVD-2006-4013- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-ccmc-8626-x545 No score
scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to...
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.
- Record
GHSA-ccmc-8626-x545- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-debuginfoRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-develRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-imapRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-ldapRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-mysqlRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-odbcRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-pgsqlRed Hat:enterprise_linux:3::as |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
phpRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-debuginfoRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
Show 100 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php-develRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-imapRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-ldapRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-mysqlRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-odbcRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-pgsqlRed Hat:enterprise_linux:3::desktop |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
phpRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-debuginfoRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-develRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-imapRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-ldapRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-mysqlRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-odbcRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-pgsqlRed Hat:enterprise_linux:3::es |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
phpRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-debuginfoRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-develRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-imapRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-ldapRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-mysqlRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-odbcRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
php-pgsqlRed Hat:enterprise_linux:3::ws |
before 0:4.3.2-36.ent | 0:4.3.2-36.ent |
phpRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-debuginfoRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-develRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-domxmlRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-gdRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-imapRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ldapRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mbstringRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mysqlRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ncursesRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-odbcRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pearRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pgsqlRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-snmpRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-xmlrpcRed Hat:enterprise_linux:4::as |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
phpRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-debuginfoRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-develRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-domxmlRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-gdRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-imapRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ldapRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mbstringRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mysqlRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ncursesRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-odbcRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pearRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pgsqlRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-snmpRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-xmlrpcRed Hat:enterprise_linux:4::desktop |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
phpRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-debuginfoRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-develRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-domxmlRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-gdRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-imapRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ldapRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mbstringRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mysqlRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ncursesRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-odbcRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pearRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pgsqlRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-snmpRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-xmlrpcRed Hat:enterprise_linux:4::es |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
phpRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-debuginfoRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-develRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-domxmlRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-gdRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-imapRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ldapRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mbstringRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-mysqlRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-ncursesRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-odbcRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pearRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-pgsqlRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-snmpRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
php-xmlrpcRed Hat:enterprise_linux:4::ws |
before 0:4.3.9-3.18 | 0:4.3.9-3.18 |
phpRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-bcmathRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-dbaRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-debuginfoRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-develRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-gdRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-imapRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-ldapRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-mbstringRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-mysqlRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-ncursesRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-odbcRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-pdoRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-pgsqlRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-snmpRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-soapRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-xmlRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
php-xmlrpcRed Hat:rhel_application_stack:1 |
before 0:5.1.4-1.el4s1.4 | 0:5.1.4-1.el4s1.4 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 4.4.3/5.1.4 - 'sscanf' Local Buffer Overflow | 2006-08-16 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
References
securitytracker.com/id?1016984
plain-text.info/sscanf_bug.txt
php.net/release_5_1_5.php
securityfocus.com/bid/19415
secunia.com/advisories/21768
secunia.com/advisories/21403
Show 75 moreShow less
redhat.com/support/errata/RHSA-2006-0669.html
mandriva.com/security/advisories?name=MDKSA-2006:144
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11062
secunia.com/advisories/21847
novell.com/linux/security/advisories/2006_20_sr.html
secunia.com/advisories/22487
ubuntu.com/usn/usn-342-1
support.avaya.com/elmodocs2/security/ASA-2006-221.htm
secunia.com/advisories/22039
rhn.redhat.com/errata/RHSA-2006-0688.html
bugs.php.net/bug.php?id=38322
secunia.com/advisories/21683
secunia.com/advisories/23247
secunia.com/advisories/21467
novell.com/linux/security/advisories/2006_19_sr.html
secunia.com/advisories/22004
support.avaya.com/elmodocs2/security/ASA-2006-222.htm
secunia.com/advisories/22538
redhat.com/support/errata/RHSA-2006-0682.html
secunia.com/advisories/21546
secunia.com/advisories/21608
secunia.com/advisories/22440
secunia.com/advisories/22069
securityfocus.com/archive/1/442438/30/0/threaded
support.avaya.com/elmodocs2/security/ASA-2006-223.htm
novell.com/linux/security/advisories/2006_22_sr.html
vupen.com/english/advisories/2006/3193
php.net/ChangeLog-5.php
security.gentoo.org/glsa/glsa-200608-28.xml
securityreason.com/securityalert/1341
rhn.redhat.com/errata/RHSA-2006-0736.html
novell.com/linux/security/advisories/2006_52_php.html
nvd.nist.gov/vuln/detail/CVE-2006-4020
github.com/advisories/GHSA-ccmc-8626-x545
access.redhat.com/errata/RHSA-2006:0669
redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=201766
bugzilla.redhat.com/show_bug.cgi?id=204993
bugzilla.redhat.com/show_bug.cgi?id=205714
bugzilla.redhat.com/show_bug.cgi?id=206664
bugzilla.redhat.com/show_bug.cgi?id=206956
bugzilla.redhat.com/show_bug.cgi?id=206959
security.access.redhat.com/data/csaf/v2/advisories/2006/rhsa-2006_0669.json
access.redhat.com/security/cve/CVE-2006-3016
bugzilla.redhat.com/show_bug.cgi?id=1618130
cve.org/CVERecord?id=CVE-2006-3016
nvd.nist.gov/vuln/detail/CVE-2006-3016
access.redhat.com/security/cve/CVE-2006-4020
bugzilla.redhat.com/show_bug.cgi?id=1618174
cve.org/CVERecord?id=CVE-2006-4020
access.redhat.com/security/cve/CVE-2006-4482
bugzilla.redhat.com/show_bug.cgi?id=1618186
cve.org/CVERecord?id=CVE-2006-4482
nvd.nist.gov/vuln/detail/CVE-2006-4482
access.redhat.com/security/cve/CVE-2006-4484
bugzilla.redhat.com/show_bug.cgi?id=431568
cve.org/CVERecord?id=CVE-2006-4484
nvd.nist.gov/vuln/detail/CVE-2006-4484
access.redhat.com/security/cve/CVE-2006-4486
bugzilla.redhat.com/show_bug.cgi?id=1618188
cve.org/CVERecord?id=CVE-2006-4486
nvd.nist.gov/vuln/detail/CVE-2006-4486
access.redhat.com/errata/RHSA-2006:0688
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=207090
bugzilla.redhat.com/show_bug.cgi?id=209408
security.access.redhat.com/data/csaf/v2/advisories/2006/rhsa-2006_0688.json
access.redhat.com/security/cve/CVE-2006-4485
bugzilla.redhat.com/show_bug.cgi?id=1618187
cve.org/CVERecord?id=CVE-2006-4485
nvd.nist.gov/vuln/detail/CVE-2006-4485
access.redhat.com/security/cve/CVE-2006-4812
bugzilla.redhat.com/show_bug.cgi?id=1618205
cve.org/CVERecord?id=CVE-2006-4812
nvd.nist.gov/vuln/detail/CVE-2006-4812