Deserialization of Untrusted Data in codeception/codeception
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | codeception/codeception | < 3.1.3, >= 4.0.0, < 4.1.22 | 3.1.3, 4.1.22 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23420
- https://github.com/Codeception/Codeception/pull/6241
- https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71
- https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71
- https://github.com/Codeception/Codeception
- https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122
- https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yaml
- https://github.com/JinYiTong/poc
- https://github.com/advisories/GHSA-4574-qv3w-fcmg
- https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-502- Platform
- Composer
- Package
codeception/codeception- Disclosed
- 01.09.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4574-qv3w-fcmg - CC BY 4.0
Vulnerability history: codeception/codeception
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.