{
  "id": "CVE-2017-9841",
  "url": "https://spydr.io/cve/CVE-2017-9841",
  "published": "2017-06-27T17:29:00.177Z",
  "modified": "2026-06-17T01:29:01.517Z",
  "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": "NVD",
  "epss": 0.99999,
  "epss_percentile": 0.99995,
  "exploited": true,
  "kev": {
    "added": "2022-02-15",
    "due": "2022-08-15",
    "action": "Apply updates per vendor instructions.",
    "ransomware": "Unknown",
    "name": "PHPUnit Command Injection Vulnerability",
    "notes": "https://nvd.nist.gov/vuln/detail/CVE-2017-9841"
  },
  "ssvc_exploitation": "active",
  "vendors": [
    "phpunit project",
    "oracle"
  ],
  "products": [
    "phpunit project phpunit",
    "oracle communications diameter signaling router"
  ],
  "cwes": [
    "CWE-94"
  ],
  "description": "Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a \"<?php \" substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.",
  "status": "Analyzed",
  "score_type": "Primary",
  "scores": {
    "cvss_v40": null,
    "cvss_v31": 9.8,
    "cvss_v30": null
  },
  "references": [
    {
      "url": "http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "http://www.securityfocus.com/bid/101798",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "http://www.securitytracker.com/id/1039812",
      "tags": [
        "Broken Link"
      ]
    },
    {
      "url": "https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5",
      "tags": [
        "Patch",
        "Third Party Advisory"
      ]
    },
    {
      "url": "https://github.com/sebastianbergmann/phpunit/pull/1956",
      "tags": [
        "Patch",
        "Third Party Advisory"
      ]
    },
    {
      "url": "https://security.gentoo.org/glsa/201711-15",
      "tags": [
        "Third Party Advisory"
      ]
    },
    {
      "url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
      "tags": [
        "Patch",
        "Third Party Advisory"
      ]
    },
    {
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841",
      "tags": [
        "US Government Resource"
      ]
    }
  ],
  "nvd_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9841",
  "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."
    }
  ]
}
