{"items":[{"id":"NVI-00007507","kind":"vulnerability","title":"PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-mh6w-vxff-9wqp"],"plain_summary":"OSV carries this publisher advisory for phpunit/phpunit, phpunit/phpunit. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 12.5.22 for phpunit/phpunit. Confirm the publisher’s latest guidance.","source_ids":["sr-de58b70c4c2e8a24dcf83ffe5bb8fec0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 13.1.6 for phpunit/phpunit. Confirm the publisher’s latest guidance.","source_ids":["sr-de58b70c4c2e8a24dcf83ffe5bb8fec0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-de58b70c4c2e8a24dcf83ffe5bb8fec0","url":"https://github.com/advisories/GHSA-mh6w-vxff-9wqp","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-mh6w-vxff-9wqp","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.979Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-de58b70c4c2e8a24dcf83ffe5bb8fec0"],"technology":"phpunit/phpunit","known_exclusions":[],"conditions_summary":"# Impact\n\nPHPUnit 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**.\n\nAn 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.\n\n**Sources of INI values that participate in the attack:**\n\n- `` entries in `phpunit.xml` / `phpunit.xml.dist`\n- INI settings inherited from the host PHP runtime via `ini_get_all()`\n\n## Threat Model\n\nExploitation requires the attacker to control the content of an INI value read by PHPUnit. In practice this means write access to the project's `phpunit.xml`, the host `php.ini`, or the PHP binary's envir","public_affected_ranges":["ECOSYSTEM: introduced 12.5.21; fixed 12.5.22"]},{"certainty":"source_listed","source_ids":["sr-de58b70c4c2e8a24dcf83ffe5bb8fec0"],"technology":"phpunit/phpunit","known_exclusions":[],"conditions_summary":"# Impact\n\nPHPUnit 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**.\n\nAn 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.\n\n**Sources of INI values that participate in the attack:**\n\n- `` entries in `phpunit.xml` / `phpunit.xml.dist`\n- INI settings inherited from the host PHP runtime via `ini_get_all()`\n\n## Threat Model\n\nExploitation requires the attacker to control the content of an INI value read by PHPUnit. In practice this means write access to the project's `phpunit.xml`, the host `php.ini`, or the PHP binary's envir","public_affected_ranges":["ECOSYSTEM: introduced 13.1.5; fixed 13.1.6"]}],"null_published_at":"2026-10-31T22:13:18.622Z","source_updated_at":"2026-04-22T16:32:58.805Z","source_disclosed_at":"2026-04-22T14:56:07.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:42:30.979Z"}],"next_cursor":null,"snapshot_revision":"42594"}