{
  "crds_version": "0.1",
  "kind": "base",
  "id": "crds:cve-2024-4577",
  "revision": 1,
  "title": "PHP-CGI on Windows — Injection via Character Conversion",
  "summary": "On Windows a character-conversion quirk lets a request slip command-line switches past the guard added for an older flaw, so the scripting language (PHP) runs attacker code again.",
  "source_type": "cve",
  "severity": "critical",
  "cvss": {
    "score": 9.8,
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "version": "3.1"
  },
  "epss": 0.99987,
  "exploitation": {
    "known_exploited": true,
    "exploit_available": true,
    "attack_complexity": "low",
    "kev_added": "2024-06-12",
    "prerequisites": "A Windows server running the interpreter as a gateway script"
  },
  "remediation": {
    "patch_available": true,
    "fixed_in": [
      "PHP 8.1.29",
      "PHP 8.2.20",
      "PHP 8.3.8"
    ]
  },
  "mitre_attack": [
    "T1190",
    "T1059"
  ],
  "kill_chain": "initial_access",
  "recommended_action": "Upgrade to 8.1.29, 8.2.20 or 8.3.8, and stop serving the interpreter as a gateway script on Windows.",
  "confidence": "high",
  "provenance": [
    {
      "fields": [
        "cvss",
        "exploitation.attack_complexity",
        "exploitation.exploit_available",
        "references",
        "published_at"
      ],
      "source": "https://nvd.nist.gov/vuln/detail/CVE-2024-4577",
      "retrieved_at": "2026-08-07T16:52:23.742Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "exploitation.known_exploited",
        "exploitation.kev_added"
      ],
      "source": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "retrieved_at": "2026-08-07T16:52:23.742Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "epss"
      ],
      "source": "https://api.first.org/data/v1/epss?cve=CVE-2024-4577",
      "retrieved_at": "2026-08-07T16:52:23.742Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "title",
        "summary",
        "severity",
        "remediation",
        "mitre_attack",
        "kill_chain",
        "recommended_action",
        "confidence",
        "tags",
        "exploitation.prerequisites"
      ],
      "source": "https://nvd.nist.gov/vuln/detail/CVE-2024-4577",
      "retrieved_at": "2026-08-07T16:52:23.742Z",
      "confidence": "high",
      "extractor": "claude-code"
    }
  ],
  "references": [
    {
      "type": "cve",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-4577",
      "label": "NVD record"
    },
    {
      "type": "cisa",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "label": "CISA Known Exploited Vulnerabilities catalog"
    },
    {
      "type": "exploit",
      "url": "https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/"
    },
    {
      "type": "exploit",
      "url": "https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/"
    },
    {
      "type": "exploit",
      "url": "https://github.com/11whoami99/CVE-2024-4577"
    }
  ],
  "published_at": "2024-06-09T20:15:09.550Z",
  "issued_at": "2026-08-07T16:52:23.742Z",
  "tags": [
    "php",
    "windows",
    "command-injection"
  ]
}
