CVE-2021-23420
Codeception vulnerability
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 products
Codeception. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Codeception runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/Codeception/Codeception/pull/6241 · Patch
- github.com/JinYiTong/poc · Exploit
- snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585 · Third Party Advisory
- github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52
- nvd.nist.gov/vuln/detail/CVE-2021-23420
- cve.org/CVERecord?id=CVE-2021-23420
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.