CVE-2021-23420
JSON

7.7high

Deserialization of Untrusted Data

Severity
7.7high CVSS:3.1 by snyk
Exploit likelihood
2.71% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-4574-qv3w-fcmgSNYK-PHP-CODECEPTIONCODECEPTION-1324585

Description

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.

Affected

Product or packageVersionsReported by
codeception/codeceptionfrom 4.0.0 before unspecified, from unspecified before 4.1.22, from unspecified before 3.1.3CVE List
codeception/codeception (Packagist)before 3.1.3, from 4.0.0 before 4.1.22GitHub Advisory Database
codeception codeceptionbefore 3.1.3, from 4.0.0 before 4.1.22NVD

All scores

snyk7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L/E:F/RL:O/RC:C
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD10.0high CVSS:2.0AV:N/AC:L/Au:N/C:C/I:C/A:C

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

Esto afecta al paquete codeception/codeception versiones desde 4.0.0 y anteriores a 4.1.22, anteriores a 3.1.3. La clase RunProcess puede ser aprovechada como un gadget para ejecutar comandos arbitrarios en un sistema que esté deserializando la entrada del usuario sin comprenderla

References

https://github.com/JinYiTong/pocexploit, third-party-advisory, web
https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585third-party-advisory, web
https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52broken-link
https://github.com/Codeception/Codeception/pull/6241patch, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-23420advisory
https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71web
https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71web
https://github.com/Codeception/Codeceptionpackage
https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122web
https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52web
https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yamlweb
https://github.com/advisories/GHSA-4574-qv3w-fcmgadvisory

Sources

SourceRecordLicence
CVE ListCVE-2021-23420 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-4574-qv3w-fcmg changed 2026-09-10CC-BY-4.0
NVDCVE-2021-23420 changed 2026-06-17Public domain