CVE-2006-4020 Memory corruption in n/a
Attackers can execute arbitrary code via a buffer over-read in the PHP sscanf function caused by argument swapping.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2006-4020?
CVE-2006-4020 is a medium-severity memory corruption vulnerability in Php Php, published on 8 Aug 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2006-4020?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2006-4020?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2006-4020 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-4020 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-ccmc-8626-x545.