SecurityContext

CVE-2006-4020: PHP - Buffer Overflow

  • Cve: CVE-2006-4020
  • Name: PHP - Buffer Overflow
  • 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.
  • Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
  • Remediation: Update PHP to the latest version where this issue is fixed.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.6
  • Cvss vector: CVSS:2.0/AV:L/AC:L/Au:N/C:P/I:P/A:P
  • Epss score: 0.02011
  • Epss percentile: 0.81383
  • Assignee: [email protected]
  • Published at: 2006-08-08T20:04:00Z
  • Age in days: 7413
  • Modified at: 2026-06-16T22:28:16Z
  • Patch available: yes
  • Public exploits total: 3
  • References total: 39
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2006-4020
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
NVD-CWE-Other—

Public exploits

Same in every row:

  • Source: nvd
  • Added date: 2006-08-08
Url
http://bugs.php.net/bug.php?id=38322
http://www.plain-text.info/sscanf_bug.txt
http://www.securityfocus.com/archive/1/442438/30/0/threaded

References

Same in every row:

  • Source: nvd
UrlTags
http://bugs.php.net/bug.php?id=38322Exploit, Patch
http://www.securityfocus.com/archive/1/442438/30/0/threadedExploit, Patch, Vendor Advisory
http://www.plain-text.info/sscanf_bug.txtExploit, URL Repurposed
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://secunia.com/advisories/21403
http://secunia.com/advisories/21467
http://secunia.com/advisories/21546
http://secunia.com/advisories/21608

Products

ProductAffectedPlatform boundSourcesUrl
php:php= 5.1.4, = 5.1.2, = 5.1.1, = 5.1.0, = 5.0.5, = 5.0.4, = 5.0.3, = 5.0.2, = 5.0.1, = 5.0.0, = 5.0.0 beta1, = 5.0.0 beta2, = 5.0.0 beta3, = 5.0.0 beta4, = 5.0.0 rc1, = 5.0.0 rc2, = 5.0.0 rc3, = 5.0 rc1, = 5.0 rc2, = 5.0 rc3, = 4.4.3, = 4.4.2, = 4.4.1, = 4.4.0, = 4.3.11, = 4.3.10, = 4.3.9, = 4.3.8, = 4.3.7, = 4.3.6, = 4.3.5, = 4.3.4, = 4.3.3, = 4.3.2, = 4.3.1, = 4.3.0, = 4.2.3, = 4.2.2, = 4.2.1, = 4.2.0, = 4.2, = 4.1.2, = 4.1.1, = 4.1.0, = 4.0.7, = 4.0.7 rc1, = 4.0.7 rc2, = 4.0.7 rc3, = 4.0.6, = 4.0.5, = 4.0.4, = 4.0.4 patch1, = 4.0.3, = 4.0.3 patch1, = 4.0.2, = 4.0.1, = 4.0.1 patch1, = 4.0.1 patch2, = 4.0.0, = 4.0, = 4.0 beta1, = 4.0 beta2, = 4.0 beta3, = 4.0 beta4, = 4.0 beta_4_patch1, = 4.0 rc1, = 4.0 rc2nonvd/v1/products/php/php

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2006-08-08
  • Exposed hosts: 6200906
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports