{
  "id": "CVE-2012-1823",
  "url": "https://spydr.io/cve/CVE-2012-1823",
  "published": "2012-05-11T10:15:48.043Z",
  "modified": "2026-06-16T23:40:22.147Z",
  "score": 9.8,
  "severity": "critical",
  "cvss_version": "3.1",
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "score_source": "CISA ADP",
  "epss": 0.99998,
  "epss_percentile": 0.9999,
  "exploited": true,
  "kev": {
    "added": "2022-03-25",
    "due": "2022-04-15",
    "action": "Apply updates per vendor instructions.",
    "ransomware": "Unknown",
    "name": "PHP-CGI Query String Parameter Vulnerability",
    "notes": "https://nvd.nist.gov/vuln/detail/CVE-2012-1823"
  },
  "ssvc_exploitation": "active",
  "vendors": [
    "php",
    "fedoraproject",
    "debian",
    "hp",
    "opensuse",
    "suse",
    "apple",
    "redhat"
  ],
  "products": [
    "php",
    "fedoraproject fedora",
    "debian linux",
    "hp-ux",
    "opensuse",
    "suse linux enterprise server",
    "suse linux enterprise software development kit",
    "apple mac os x",
    "redhat application stack",
    "redhat gluster storage server for on-premise",
    "redhat storage",
    "redhat storage for public cloud",
    "redhat enterprise linux desktop",
    "redhat enterprise linux eus",
    "redhat enterprise linux server",
    "redhat enterprise linux server aus",
    "redhat enterprise linux workstation"
  ],
  "cwes": [
    "CWE-77"
  ],
  "description": "sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.",
  "status": "Analyzed",
  "score_type": "Secondary",
  "scores": {
    "cvss_v40": null,
    "cvss_v31": 9.8,
    "cvss_v30": null
  },
  "references": [
    {
      "url": "http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/",
      "tags": [
        "Broken Link",
        "Exploit"
      ]
    },
    {
      "url": "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html",
      "tags": [
        "Mailing List",
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html",
      "tags": [
        "Mailing List",
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html",
      "tags": [
        "Mailing List",
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html",
      "tags": [
        "Mailing List",
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://marc.info/?l=bugtraq&m=134012830914727&w=2",
      "tags": [
        "Mailing List"
      ]
    },
    {
      "url": "http://rhn.redhat.com/errata/RHSA-2012-0546.html",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://rhn.redhat.com/errata/RHSA-2012-0547.html",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://rhn.redhat.com/errata/RHSA-2012-0568.html",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://rhn.redhat.com/errata/RHSA-2012-0569.html",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://rhn.redhat.com/errata/RHSA-2012-0570.html",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://secunia.com/advisories/49014",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://secunia.com/advisories/49065",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://secunia.com/advisories/49085",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://secunia.com/advisories/49087",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://support.apple.com/kb/HT5501",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://www.debian.org/security/2012/dsa-2465",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://www.kb.cert.org/vuls/id/520827",
      "tags": [
        "Exploit",
        "Third Party Advisory",
        "US Government Resource"
      ]
    },
    {
      "url": "http://www.kb.cert.org/vuls/id/673343",
      "tags": [
        "Third Party Advisory",
        "US Government Resource"
      ]
    },
    {
      "url": "http://www.mandriva.com/security/advisories?name=MDVSA-2012:068",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://www.openwall.com/lists/oss-security/2024/06/07/1",
      "tags": [
        "Mailing List"
      ]
    },
    {
      "url": "http://www.php.net/ChangeLog-5.php#5.4.2",
      "tags": [
        "Exploit",
        "Patch",
        "Release Notes"
      ]
    },
    {
      "url": "http://www.php.net/archive/2012.php#id2012-05-03-1",
      "tags": [
        "Release Notes"
      ]
    },
    {
      "url": "http://www.securitytracker.com/id?1027022",
      "tags": [
        "Broken Link",
        "Third Party Advisory",
        "VDB Entry"
      ]
    }
  ],
  "nvd_url": "https://nvd.nist.gov/vuln/detail/CVE-2012-1823",
  "covered_in": [],
  "attribution": [
    {
      "source": "NVD",
      "url": "https://nvd.nist.gov",
      "notice": "This product uses data from the NVD API but is not endorsed or certified by the NVD."
    },
    {
      "source": "CISA KEV",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "notice": "Known exploited vulnerabilities from the CISA KEV catalog."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss",
      "notice": "Exploit prediction scores from FIRST EPSS."
    }
  ]
}
