{"id":"CVE-2021-23420","aliases":["CVE-2021-23420","GHSA-4574-qv3w-fcmg","SNYK-PHP-CODECEPTIONCODECEPTION-1324585"],"related":[],"kind":"vulnerability","state":"published","title":"Deserialization of Untrusted Data","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"This affects the package codeception/codeception from 4.0.0 before 4.1.22 and 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta al paquete codeception/codeception versiones desde 4.0.0 y anteriores a 4.1.22, anteriores a 3.1.3. La clase RunProcess puede ser aprovechada como un gadget para ejecutar comandos arbitrarios en un sistema que esté deserializando la entrada del usuario sin comprenderla","source":"nvd"}],"published":"2021-08-11T12:15:12.647Z","modified":"2026-09-10T03:49:27.228Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L/E:F/RL:O/RC:C","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L/E:F/RL:O/RC:C","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","score":10,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"4.0.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"4.1.22","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"3.1.3","status":"affected"}],"product":"codeception/codeception","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"Packagist","package":"codeception/codeception","purl":"pkg:composer/codeception/codeception","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.1.22"}],"ecosystem":"Packagist","package":"codeception/codeception","purl":"pkg:composer/codeception/codeception","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.3"},{"status":"affected","introduced":"4.0.0","fixed":"4.1.22"}],"vendor":"codeception","product":"codeception","cpe":"cpe:2.3:a:codeception:codeception:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/JinYiTong/poc","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52","tags":["broken-link","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Codeception/Codeception/pull/6241","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23420","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Codeception/Codeception","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-4574-qv3w-fcmg","tags":["advisory"],"sources":["ghsa"]}],"credits":["JinYiTong"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23420","url":"https://www.cve.org/CVERecord?id=CVE-2021-23420","licence":"CVE Terms of Use","modified":"2024-09-16T17:33:12.400Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4574-qv3w-fcmg","url":"https://github.com/advisories/GHSA-4574-qv3w-fcmg","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:27.228Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23420","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23420","licence":"Public domain","modified":"2026-06-17T03:38:43.843Z"}],"updatedAt":"2026-11-25T22:58:03.122Z","epss":{"score":0.02714,"percentile":0.86408,"date":"2026-12-01T12:00:22.000Z"}}