CVE-2006-4020
scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to execute arbitrary code v…
Also known as EDB-2193
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- n/a
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.6 (v2.0, NVD)AV:L/AC:L/Au:N/C:P/I:P/A:P
Show all 6 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Authentication: None
- Confidentiality impact: Partial
- Integrity impact: Partial
- Availability impact: Partial
- EPSS
- 2.01% chance of exploitation in 30 days (percentile 82, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2006-4020. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2006-4020.md Affected: n/a Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://www.redhat.com/support/errata/RHSA-2006-0669.html
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:144
- http://www.novell.com/linux/security/advisories/2006_20_sr.html
- http://www.ubuntu.com/usn/usn-342-1
- http://rhn.redhat.com/errata/RHSA-2006-0688.html
- http://www.novell.com/linux/security/advisories/2006_19_sr.html
- http://www.redhat.com/support/errata/RHSA-2006-0682.html
- http://www.novell.com/linux/security/advisories/2006_22_sr.html
- http://security.gentoo.org/glsa/glsa-200608-28.xml
- http://rhn.redhat.com/errata/RHSA-2006-0736.html
- http://www.novell.com/linux/security/advisories/2006_52_php.html
Exploits and PoCs
Other
- http://securitytracker.com/id?1016984
- http://www.php.net/release_5_1_5.php
- http://www.securityfocus.com/bid/19415
- http://secunia.com/advisories/21768
- http://secunia.com/advisories/21403
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11062
- http://secunia.com/advisories/21847
- http://secunia.com/advisories/22487
- http://support.avaya.com/elmodocs2/security/ASA-2006-221.htm
- http://secunia.com/advisories/22039
- http://secunia.com/advisories/21683
- http://secunia.com/advisories/23247
- http://secunia.com/advisories/21467
- http://secunia.com/advisories/22004
- http://support.avaya.com/elmodocs2/security/ASA-2006-222.htm
- http://secunia.com/advisories/22538
- http://secunia.com/advisories/21546
- http://secunia.com/advisories/21608
- http://secunia.com/advisories/22440
- http://secunia.com/advisories/22069
- http://support.avaya.com/elmodocs2/security/ASA-2006-223.htm
- http://www.vupen.com/english/advisories/2006/3193
- http://www.php.net/ChangeLog-5.php#5.1.5
- http://securityreason.com/securityalert/1341
FAQ
Is CVE-2006-4020 being exploited?
There is no confirmed exploitation: CVE-2006-4020 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.01% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2006-4020?
Medium: CVSS 4.6 (v2.0, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2006-4020?
n/a.
Is there a fix for CVE-2006-4020?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2006-4020?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.