{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23420","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.","descriptionLong":"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-11T12:15:12.647Z","updated":"2026-10-20T10:53:38.130212594Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"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","rating":"high","source":"snyk"},"metrics":[{"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","rating":"high","source":"snyk"},{"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","rating":"high","source":"snyk.io"},{"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","rating":"critical","source":"NVD"},{"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","rating":"critical","source":"OSV"},{"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","rating":"critical","source":"GitHub"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"high","products":["codeception/codeception"],"affectedProducts":[{"vendor":"n/a","product":"codeception/codeception","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"4.0.0","versionType":"custom"},{"lessThan":"4.1.22","status":"affected","version":"unspecified","versionType":"custom"},{"lessThan":"3.1.3","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"codeception/codeception","purl":"pkg:composer/codeception/codeception","ranges":["<3.1.3",">=4.0.0 <4.1.22"],"fixed":["3.1.3","4.1.22"],"advisory":"GHSA-4574-qv3w-fcmg"}],"cwes":["CWE-502"],"aliases":["GHSA-4574-qv3w-fcmg","SNYK-PHP-CODECEPTIONCODECEPTION-1324585"],"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","tags":["package"]},{"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"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02714,"epssPercentile":0.86358,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23420","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23420","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23420","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4574-qv3w-fcmg","ok":true,"note":"GHSA-4574-qv3w-fcmg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23420","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}