CVE-2021-23420
CRITICAL 9.8CVSS 3.1Deserialization of Untrusted Data in codeception/codeception
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
- 11 Aug 2021
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-4574-qv3w-fcmgSNYK-PHP-CODECEPTIONCODECEPTION-1324585
- Sources
- NVDJSONOSV GHSA-4574-qv3w-fcmgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | codeception | codeceptioncpe:2.3:a:codeception:codeception:*:*:*:*:*:*:*:* |
< 3.1.3 | 3.1.3 |
| NVD | codeception | codeceptioncpe:2.3:a:codeception:codeception:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.1.22 | 4.1.22 |
| OSV | Packagist | codeception/codeception | < 3.1.3 | 3.1.3 |
| OSV | Packagist | codeception/codeception | >= 4.0.0, < 4.1.22 | 4.1.22 |
References
- 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://github.com/JinYiTong/poc · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585 · 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 11 Aug 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 1 Sep 2021)