# CVE-2021-23420: Deserialization of Untrusted Data

- Severity: High 7.7 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.71%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-11T12:15:12.647Z
- Modified: 2026-09-10T03:49:27.228Z
- Also known as: GHSA-4574-qv3w-fcmg, SNYK-PHP-CODECEPTIONCODECEPTION-1324585
- Weaknesses: CWE-502
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- codeception/codeception: from 4.0.0 before unspecified; from unspecified before 4.1.22; from unspecified before 3.1.3
- codeception/codeception (Packagist): before 3.1.3; from 4.0.0 before 4.1.22
- codeception codeception: before 3.1.3; from 4.0.0 before 4.1.22

## Every score

- snyk: CVSS:3.1 7.7 High `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`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/JinYiTong/poc> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585> (third-party-advisory, web)
- <https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52> (broken-link)
- <https://github.com/Codeception/Codeception/pull/6241> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23420> (advisory)
- <https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71> (web)
- <https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71> (web)
- <https://github.com/Codeception/Codeception> (package)
- <https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122> (web)
- <https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yaml> (web)
- <https://github.com/advisories/GHSA-4574-qv3w-fcmg> (advisory)

## Sources

- CVE List: [CVE-2021-23420](https://www.cve.org/CVERecord?id=CVE-2021-23420), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-4574-qv3w-fcmg](https://github.com/advisories/GHSA-4574-qv3w-fcmg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-23420](https://nvd.nist.gov/vuln/detail/CVE-2021-23420), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23420 · Whole record: https://cve.day/CVE-2021-23420.json · Rebuilt by cve.day 2026-11-25T22:58:03.122Z
