{
    "id": "CVE-2006-4020",
    "published": "2006-08-08 20:04:00",
    "last_modified": "2026-06-16 22:28:16",
    "cvss_score": "4.6",
    "cvss_severity": "MEDIUM",
    "cvss_version": "2.0",
    "cvss_vector": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
    "cwe": null,
    "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.",
    "epss_score": "0.02011",
    "epss_percentile": "0.80272",
    "kev": 0,
    "kev_due": null,
    "has_exploit": 1,
    "updated_at": "2026-10-08 18:17:06",
    "priority": {
        "rank": 2,
        "label": "Patch early",
        "why": "A public exploit exists."
    },
    "products": [
        {
            "vendor": "php",
            "product": "php"
        }
    ],
    "kev_detail": null,
    "exploits": [
        {
            "source": "exploit-db",
            "ref_id": "2193",
            "title": "PHP 4.4.3/5.1.4 - 'sscanf' Local Buffer Overflow",
            "date": "2006-08-16",
            "url": "https://www.exploit-db.com/exploits/2193"
        }
    ],
    "refs_list": [
        "ftp://patches.sgi.com/support/free/security/advisories/20061001-01-P.asc",
        "http://bugs.php.net/bug.php?id=38322",
        "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",
        "http://secunia.com/advisories/21683",
        "http://secunia.com/advisories/21768",
        "http://secunia.com/advisories/21847",
        "http://secunia.com/advisories/22004",
        "http://secunia.com/advisories/22039",
        "http://secunia.com/advisories/22069",
        "http://secunia.com/advisories/22440",
        "http://secunia.com/advisories/22487",
        "http://secunia.com/advisories/22538",
        "http://secunia.com/advisories/23247",
        "http://security.gentoo.org/glsa/glsa-200608-28.xml",
        "http://securityreason.com/securityalert/1341",
        "http://securitytracker.com/id?1016984",
        "http://support.avaya.com/elmodocs2/security/ASA-2006-221.htm",
        "http://support.avaya.com/elmodocs2/security/ASA-2006-222.htm",
        "http://support.avaya.com/elmodocs2/security/ASA-2006-223.htm",
        "http://www.mandriva.com/security/advisories?name=MDKSA-2006:144"
    ]
}