CRITICAL9.8
GHSA-4574-qv3w-fcmg
Deserialization of Untrusted Data in codeception/codeception
Quick fix
GHSA-4574-qv3w-fcmg — codeception/codeception: upgrade to the fixed version with the command below.
composer require codeception/codeception:^3.1.3Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/codeception/codeception
Introduced in:
0Fixed in: 3.1.3Fix
composer require codeception/codeception:^3.1.3Packagist/codeception/codeception
Introduced in:
4.0.0Fixed in: 4.1.22Fix
composer require codeception/codeception:^4.1.22References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23420[ADVISORY]
- https://github.com/Codeception/Codeception/pull/6241[WEB]
- https://github.com/Codeception/Codeception/commit/802a108057d250ee563120eaa5365a519afc0a71[WEB]
- https://github.com/Codeception/Codeception/commit/cbce9ea7f4664052fa1ac6b36f5b5a6dbd864d71[WEB]
- https://github.com/Codeception/Codeception[PACKAGE]
- https://github.com/Codeception/Codeception/blob/4.1/CHANGELOG-4.x.md#4122[WEB]
- https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php#L52[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeception/codeception/CVE-2021-23420.yaml[WEB]
- https://github.com/JinYiTong/poc[WEB]
- https://github.com/advisories/GHSA-4574-qv3w-fcmg[ADVISORY]
- https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585[WEB]