{
  "id": "CVE-2026-41570",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-41570",
  "published_at": "2026-05-08T14:33:51.63Z",
  "title": "PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes",
  "vendor": "sebastianbergmann",
  "product": "phpunit",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "PHPUnit is a testing framework for PHP. In versions 12.5.21 and 13.1.5, PHPUnit forwards PHP INI settings to child processes (used for isolated/PHPT test execution) as -d name=value command-line arguments without neutralizing INI metacharacters. Because PHP's INI parser interprets \" as a string delimiter, ; as the start of a comment, and most importantly a newline as a directive separator, a value containing a newline is parsed by the child process as multiple INI directives. An attacker able to influence a single INI value can therefore inject arbitrary additional directives into the child's configuration, including auto_prepend_file, extension, disable_functions, open_basedir, and others. Setting auto_prepend_file to an attacker-controlled path yields remote code execution in the child process. This issue has been patched in versions 12.5.22 and 13.1.6.",
  "cwe": "CWE-93",
  "cpes": [
    "cpe:2.3:a:phpunit_project:phpunit:12.5.21:*:*:*:*:-:*:*",
    "cpe:2.3:a:phpunit_project:phpunit:13.1.5:*:*:*:*:-:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "sebastianbergmann",
        "product": "phpunit",
        "ranges": [
          "= 12.5.21",
          "= 13.1.5"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "phpunit/phpunit",
        "ranges": [
          "\u003e= 12.5.21, \u003c 12.5.22"
        ],
        "fixed_in": [
          "12.5.22"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-qrr6-mg7r-m243"
      },
      {
        "vendor": "",
        "product": "phpunit/phpunit",
        "ranges": [
          "\u003e= 13.1.5, \u003c 13.1.6"
        ],
        "fixed_in": [
          "13.1.6"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-qrr6-mg7r-m243"
      }
    ],
    "upgrade": [
      "Upgrade phpunit/phpunit to 12.5.22 or later.",
      "Upgrade phpunit/phpunit to 13.1.6 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/sebastianbergmann/phpunit/pull/6592"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
