{"id":"CVE-2021-23420","aliases":["GHSA-4574-qv3w-fcmg"],"url":"https://o3.security/vulnerability/CVE-2021-23420","summary":" Deserialization of Untrusted Data in codeception/codeception","details":"This affects the package codeception/codeception from 4.0.0 and before 4.1.22, before 3.1.3. The RunProcess class can be leveraged as a gadget to run arbitrary commands on a system that is deserializing user input without validation.","published":"2021-08-11T13:15:16.057Z","modified":"2026-07-09T14:06:14.488501Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Packagist","name":"codeception/codeception","fixedVersion":"3.1.3"},{"ecosystem":"Packagist","name":"codeception/codeception","fixedVersion":"4.1.22"}],"fix":{"url":"https://github.com/Codeception/Codeception/pull/6241","label":"Codeception/Codeception#6241"},"references":[{"type":"WEB","url":"https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585"},{"type":"FIX","url":"https://github.com/Codeception/Codeception/pull/6241"},{"type":"EVIDENCE","url":"https://github.com/JinYiTong/poc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23420"},{"type":"WEB","url":"https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71"},{"type":"WEB","url":"https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71"},{"type":"PACKAGE","url":"https://github.com/Codeception/Codeception"},{"type":"WEB","url":"https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122"},{"type":"WEB","url":"https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yaml"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4574-qv3w-fcmg"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T14:06:14.488501Z"}}