Description
An arbitrary file upload vulnerability in formidable v3.1.4 allows attackers to execute arbitrary code via a crafted filename. NOTE: some third parties dispute this issue because the product has common use cases in which uploading arbitrary files is the desired behavior. Also, there are configuration options in all versions that can change the default behavior of how files are handled. Strapi does not consider this to be a valid vulnerability.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-formidable | 3.2.4+20220519git81dd350+~cs4.0.9-1 | — |
| Debian 13 | node-formidable | 3.2.4+20220519git81dd350+~cs4.0.9-1 | — |
| Debian 12 | node-formidable | 3.2.4+20220519git81dd350+~cs4.0.9-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
keymandll/CVE-2022-29622 ★ 3 · Jun 5, 2022
Hack this service to prove CVE-2022–29622 is valid
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://www.youtube.com/watch?v=C6QPKooxhAo
- https://github.com/node-formidable/formidable/issues/856
- https://github.com/node-formidable/formidable/issues/862
- https://medium.com/%40zsolt.imre/is-cybersecurity-the-next-supply-chain-vulnerability-9a00de745022
- https://github.com/strapi/strapi/issues/20189