{"answers":{"affected":"4 open source packages ship an affected version, including phpunit/phpunit. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41570 exists.","fix":"Upgrade phpunit/phpunit to a fixed version for your release line: 12.5.22 or 13.1.6.","what":"CVE-2026-41570 is a high-severity command injection vulnerability in sebastianbergmann phpunit, published on 8 May 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41570 and fix it if it is affected.\n\nWhat it is: CVE-2026-41570 is a high-severity command injection vulnerability in sebastianbergmann phpunit, published on 8 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41570 exists.\n\nAffected packages and fixed versions:\n- phpunit/phpunit (Packagist): affected from 12.5.21; fixed in 12.5.22\n- phpunit/phpunit (Packagist): affected from 12.5.21; fixed in 12.5.22\n- phpunit/phpunit (Packagist): affected from 13.1.5; fixed in 13.1.6\n- phpunit/phpunit (Packagist): affected from 13.1.5; fixed in 13.1.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41570/ (Markdown: https://insights.sbomify.com/CVE-2026-41570/index.md)","id":"CVE-2026-41570","markdown":"https://insights.sbomify.com/CVE-2026-41570/index.md","name":"CVE-2026-41570","record":{"aliases":["GHSA-qrr6-mg7r-m243","UBUNTU-CVE-2026-41570"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PHP testing framework","requires_auth":"low_privilege","summary":"Attackers can inject arbitrary PHP INI directives via newlines in forwarded settings, leading to remote code execution in child processes.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"phpunit","vendor":"phpunit_project"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes","id":"CVE-2026-41570","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"Note Mark: OIDC-registered users authenticated by submitting password \"null\"","id":"CVE-2026-41571"},"packages":[{"ecosystem":"Packagist","fixed":["12.5.22"],"introduced":["12.5.21"],"last_affected":[],"package":"phpunit/phpunit","purl":null,"source":"GHSA-qrr6-mg7r-m243"},{"ecosystem":"Packagist","fixed":["12.5.22"],"introduced":["12.5.21"],"last_affected":[],"package":"phpunit/phpunit","purl":"pkg:composer/phpunit/phpunit","source":"GHSA-qrr6-mg7r-m243"},{"ecosystem":"Packagist","fixed":["13.1.6"],"introduced":["13.1.5"],"last_affected":[],"package":"phpunit/phpunit","purl":null,"source":"GHSA-qrr6-mg7r-m243"},{"ecosystem":"Packagist","fixed":["13.1.6"],"introduced":["13.1.5"],"last_affected":[],"package":"phpunit/phpunit","purl":"pkg:composer/phpunit/phpunit","source":"GHSA-qrr6-mg7r-m243"}],"prev":{"headline":"authentik: WS-Federation wreply origin bypass can exfiltrate signed login responses to attacker-controlled endpoints","id":"CVE-2026-41569"},"products":["phpunit"],"published":"2026-05-08","related":[{"cvss_score":4.3,"headline":"PHPUnit extension for TYPO3 vulnerable to Cross-site Scripting","id":"CVE-2013-4744","kev_date_added":null,"published":"2013-07-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["sebastianbergmann"]},"summary":"Attackers can inject arbitrary PHP INI directives via newlines in forwarded settings, leading to remote code execution in child processes.","url":"https://insights.sbomify.com/CVE-2026-41570/"}