Deserialization of untrusted data in codeception/codeception
Priority MEDIUM 47CWE-502Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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.
Why it matters now
EPSS 0.02714 86th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed codeception/codeception: 4.1.22, 3.1.3codeception/codeception (Packagist): 3.1.3, 4.1.22
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | codeception/codeception | 4.0.0 and later; before 4.1.22; before 3.1.3 | 4.1.22, 3.1.3 | Patch available | CNA |
| — | codeception/codeception (Packagist) | before 3.1.3 | 3.1.3 | Patch available | GHSA-4574-qv3w-fcmg |
| — | codeception/codeception (Packagist) | 4.0.0 to before 4.1.22 | 4.1.22 | Patch available | GHSA-4574-qv3w-fcmg |
- codeception/codeception Vendor— Affected 4.0.0 and later; before 4.1.22; before 3.1.3 Fixed in 4.1.22, 3.1.3 Patch available CNA
- codeception/codeception (Packagist) Vendor— Affected before 3.1.3 Fixed in 3.1.3 Patch available GHSA-4574-qv3w-fcmg
- codeception/codeception (Packagist) Vendor— Affected 4.0.0 to before 4.1.22 Fixed in 4.1.22 Patch available GHSA-4574-qv3w-fcmg
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:codeception:codeception:*:*:*:*:*:*:*:* | before 3.1.3; 4.0.0 to before 4.1.22 | Vulnerable | Codeception |
- cpe:2.3:a:codeception:codeception:*:*:*:*:*:*:*:* Versions before 3.1.3; 4.0.0 to before 4.1.22 Vulnerable ·Codeception
Remediation
- Fix · CNA codeception/codeception Fixed in 4.1.22, 3.1.3
- Fix · GHSA-4574-qv3w-fcmg codeception/codeception (Packagist) Fixed in 3.1.3 Advisory →
- Fix · GHSA-4574-qv3w-fcmg codeception/codeception (Packagist) Fixed in 4.1.22 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23420
- 2026-10-03 Alias added: GHSA-4574-qv3w-fcmg
References
Exploit 1
Advisory 2
Other 7
- https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52
- 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
Sources
- CVE-2021-23420 · CVE Program
- CVE-2021-23420 · NVD
- FIRST EPSS
- GHSA-4574-qv3w-fcmg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences