CVE-2006-4020: PHP
Medium severity, CVSS 4.6. EPSS: 2% chance of exploitation in the next 30 days.
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 products
- PHP PHP: version 4.0 only; version 4.0.0 only; version 4.0.1 only; version 4.0.2 only; version 4.0.3 only; version 4.0.4 only; …
Published 2006-08-08. Last modified 2026-06-16.