CVE-2021-23420Codeception
Critical 9.8 No auth needed
Follow: this CVE · Codeception · Codeception We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Aug 11, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Codeception.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | codeception/codeception |
< 3.1.3 |
3.1.3 |
composer require "codeception/codeception:^3.1.3" |
| Packagist | codeception/codeception |
≥ 4.0.0 < 4.1.22 |
4.1.22 |
composer require "codeception/codeception:^4.1.22" |
Per OSV / GitHub Advisories (GHSA-4574-qv3w-fcmg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| codeception | codeception | < 3.1.3 |
| codeception | codeception | ≥ 4.0.0 < 4.1.22 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- snyk.io Third Party Advisory