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

  1. 2006-08-08Published by the CNA20:00 UTC
  2. 2006-08-16First Exploit-DB entry (EDB-ID 2193)8 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 2193locallinux2006-08-16yes

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
php php4.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

Products and versions as NVD and the vendor that published the CVE list them.

References

39 references in total; the first 20 are shown.

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources