{"id":"CVE-2021-23420","aliases":["EUVD-2021-1967","GHSA-4574-qv3w-fcmg","SNYK-PHP-CODECEPTIONCODECEPTION-1324585"],"status":"published","title":"Deserialization of Untrusted Data","description":"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.","severity":{"version":"3.1","score":7.7,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02714,"percentile":0.86194,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-502"],"published":"2021-08-11T12:15:12Z","modified":"2026-10-20T10:53:38Z","fixes":[{"ecosystem":"Packagist","package":"codeception/codeception","fixed_in":["4.1.22","3.1.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"codeception/codeception","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.1.22"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"codeception/codeception","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"codeception/codeception","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"versions":["1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.9","1.1.0","1.1.2","1.1.3","1.1.4","1.1.5","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.6.0","1.6.0.1","1.6.0.3","1.6.0.4","1.6.1","1.6.1.1","1.6.11","1.6.12","1.6.2","1.6.3","1.6.3.1","1.6.4","1.6.4.1","1.6.4.2","1.6.5","1.6.6","1.6.7","1.6.8","1.6.8.1","1.7.0","1.7.0.1","1.7.0.2","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.0.1","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","2.0.0","2.0.0-RC","2.0.0-RC2","2.0.0-alpha","2.0.0-beta","2.0.1","2.0.10","2.0.10.1","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.0-beta","2.1.0-rc1","2.1.1","2.1.10","2.1.11","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.8","2.1.9","2.2.0","2.2.0-RC","2.2.0-RC2","2.2.0-beta","2.2.1","2.2.10","2.2.11","2.2.12","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2"]},{"source":"osv","ecosystem":"Packagist","package":"codeception/codeception","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.1.22"}]}],"versions":["4.0.0","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","4.1.11","4.1.12","4.1.13","4.1.14","4.1.15","4.1.16","4.1.17","4.1.18","4.1.19","4.1.2","4.1.20","4.1.21","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.8","4.1.9"]}],"products":[{"vendor":"codeception","product":"codeception"}],"references":[{"url":"https://github.com/JinYiTong/poc","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://github.com/Codeception/Codeception/pull/6241","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23420","tags":["advisory"]},{"url":"https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71","tags":["web"]},{"url":"https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71","tags":["web"]},{"url":"https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122","tags":["web"]},{"url":"https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4574-qv3w-fcmg","tags":["advisory"]},{"url":"https://github.com/Codeception/Codeception","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23420","title":"Deserialization of Untrusted Data","description":"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.","status":"published","published":"2021-08-11T12:15:12.647Z","modified":"2024-09-16T17:33:12.4Z","cvss":[{"version":"3.1","score":7.7,"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","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-1967","description":"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.","status":"published","published":"2021-08-11T12:15:12Z","modified":"2024-09-16T17:33:12Z","cvss":[{"version":"3.1","score":7.7,"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","level":"high"}],"updated_at":"2026-11-03T00:55:41.00036Z"}],"ghsa":[{"id":"GHSA-4574-qv3w-fcmg","title":" Deserialization of Untrusted Data in codeception/codeception","description":"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.","status":"published","published":"2021-09-01T18:36:15Z","modified":"2024-02-05T10:36:25Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:37:35.293818Z"}],"nvd":[{"id":"CVE-2021-23420","description":"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.","status":"published","published":"2021-08-11T13:15:16.057Z","modified":"2026-06-17T03:38:43.843Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:06:56.943671Z"}],"osv":[{"id":"CVE-2021-23420","description":"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.","status":"published","published":"2021-08-11T13:15:16.057Z","modified":"2026-10-20T10:53:38.130212594Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:18.367807Z"},{"id":"GHSA-4574-qv3w-fcmg","title":" Deserialization of Untrusted Data in codeception/codeception","description":"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.","status":"published","published":"2021-09-01T18:36:15Z","modified":"2026-09-10T03:49:27.228804007Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:36.434231Z"}]}}
