Live threats

All CVEs / Codeception

CVE-2021-23420Codeception

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Codeception.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
codeceptioncodeception< 3.1.3
codeceptioncodeception≥ 4.0.0 < 4.1.22

Official sources

References

Links published by the sources. Open them with care.