CVE-2022-27140
Express-fileupload Project Express-fileupload vulnerability
An arbitrary file upload vulnerability in the file upload module of express-fileupload 1.3.1 allows attackers to execute arbitrary code via a crafted PHP file. NOTE: the vendor's position is that the observed behavior can only occur with "intentional misusing of the API": the express-fileupload middleware is not responsible for an application's business logic (e.g., determining whether or how a file should be renamed).
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Express-fileupload. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Express-fileupload Project Express-fileupload 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/richardgirges/express-fileupload/issues/312#issuecomment-1134912967 · Third Party Advisory
- github.com/richardgirges/express-fileupload/issues/329#issuecomment-1387288644 · Third Party Advisory
- www.youtube.com/watch?v=4XpofFi84KI · Exploit
- nvd.nist.gov/vuln/detail/CVE-2022-27140
- cve.org/CVERecord?id=CVE-2022-27140
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.