Vulnerability · Published Aug 11, 2021 · Assigned by snyk
CVE-2021-23420Deserialization of Untrusted Data
High 7.7
In plain English
A high-severity security flaw in codeception/codeception. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.7High
Exploit odds (30 days)2.7%top 13.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | codeception/codeception | 3.1.3 | GHSA-4574-qv3w-fcmg |
| Packagist | codeception/codeception | 4.1.22 | GHSA-4574-qv3w-fcmg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | codeception/codeception | 4.0.0 – before unspecifiedunspecified – before 4.1.22unspecified – before 3.1.3 |
References
- https://github.com/JinYiTong/poc x_refsource_MISC
- https://snyk.io/vuln/SNYK-PHP-CODECEPTIONCODECEPTION-1324585 x_refsource_MISC
- https://github.com/Codeception/Codeception/blob/4.1/ext/RunProcess.php%23L52 x_refsource_MISC
- https://github.com/Codeception/Codeception/pull/6241 x_refsource_MISC