CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2026-41570

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.8 · high

PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.191% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 7.8 · published by GitHub_M
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:58:29.701Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:58:29.701ZCVE Program
epssverified2026-11-19T16:04:50.042ZFIRST EPSS
patchesverified2026-11-19T12:52:36.057ZOSV
affectedverified2026-11-19T12:58:29.701ZCVE Program
lifecycleverified2026-11-19T12:58:29.701ZCVE Program

Affected versions and configuration

sebastianbergmann phpunit; default status: unknown: = 12.5.21 [affected; scheme: unspecified]; = 13.1.5 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "sebastianbergmann",
      "product": "phpunit",
      "versions": [
        {
          "status": "affected",
          "version": "= 12.5.21"
        },
        {
          "status": "affected",
          "version": "= 13.1.5"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-41570",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-05-08T16:01:31.346640Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/sebastianbergmann/phpunit/pull/6592",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-05-08T16:01:51.929Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-qrr6-mg7r-m243",
  "aliases": [
    "CVE-2026-41570"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "12.5.21"
            },
            {
              "fixed": "12.5.22"
            }
          ]
        }
      ],
      "package": {
        "name": "phpunit/phpunit",
        "purl": "pkg:composer/phpunit/phpunit",
        "ecosystem": "Packagist"
      },
      "versions": [
        "12.5.21"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qrr6-mg7r-m243/GHSA-qrr6-mg7r-m243.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "13.1.5"
            },
            {
              "fixed": "13.1.6"
            }
          ]
        }
      ],
      "package": {
        "name": "phpunit/phpunit",
        "purl": "pkg:composer/phpunit/phpunit",
        "ecosystem": "Packagist"
      },
      "versions": [
        "13.1.5"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qrr6-mg7r-m243/GHSA-qrr6-mg7r-m243.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41570",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/sebastianbergmann/phpunit/pull/6592",
      "type": "WEB"
    },
    {
      "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-41570.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/sebastianbergmann/phpunit",
      "type": "PACKAGE"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-88",
      "CWE-93"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "nvd_published_at": "2026-05-08T15:16:40Z",
    "github_reviewed_at": "2026-04-18T00:59:28Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPackagist / packagephpunit/phpunitNot a distribution channel12.5.22Official record
ecosystem-boundaryPackagist / packagephpunit/phpunitNot a distribution channel13.1.6Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history