{
  "crds_version": "0.1",
  "kind": "base",
  "id": "crds:cve-2012-1823",
  "revision": 1,
  "title": "PHP-CGI — Query String Becomes Interpreter Arguments",
  "summary": "A web server that runs the scripting language (PHP) as a separate program passes the query string straight to it, so a request can hand the interpreter command-line switches and make it run attacker code.",
  "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.99998,
  "exploitation": {
    "known_exploited": true,
    "exploit_available": true,
    "attack_complexity": "low",
    "kev_added": "2022-03-25",
    "prerequisites": "A server exposing the interpreter as a gateway script"
  },
  "remediation": {
    "patch_available": true,
    "fixed_in": [
      "PHP 5.3.12",
      "PHP 5.4.2"
    ]
  },
  "mitre_attack": [
    "T1190",
    "T1059"
  ],
  "kill_chain": "initial_access",
  "recommended_action": "Upgrade to 5.3.12 or 5.4.2, or stop serving the interpreter as a gateway script.",
  "confidence": "high",
  "provenance": [
    {
      "fields": [
        "cvss",
        "exploitation.attack_complexity",
        "exploitation.exploit_available",
        "references",
        "published_at"
      ],
      "source": "https://nvd.nist.gov/vuln/detail/CVE-2012-1823",
      "retrieved_at": "2026-08-07T16:48:34.775Z",
      "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:48:34.775Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "epss"
      ],
      "source": "https://api.first.org/data/v1/epss?cve=CVE-2012-1823",
      "retrieved_at": "2026-08-07T16:48:34.775Z",
      "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-2012-1823",
      "retrieved_at": "2026-08-07T16:48:34.775Z",
      "confidence": "high",
      "extractor": "claude-code"
    }
  ],
  "references": [
    {
      "type": "cve",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-1823",
      "label": "NVD record"
    },
    {
      "type": "cisa",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "label": "CISA Known Exploited Vulnerabilities catalog"
    },
    {
      "type": "vendor_advisory",
      "url": "https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1"
    },
    {
      "type": "exploit",
      "url": "http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/"
    },
    {
      "type": "exploit",
      "url": "http://www.kb.cert.org/vuls/id/520827"
    }
  ],
  "published_at": "2012-05-11T10:15:48.043Z",
  "issued_at": "2026-08-07T16:48:34.775Z",
  "tags": [
    "php",
    "web-server",
    "command-injection"
  ]
}
