Vulnerability record · CVE-2022-27140 · published 12 April 2022
CVE-2022-27140: Express-fileupload project express-fileupload unrestricted file upload vulnerability
EExpress Fileupload Project · Express Fileupload
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).
Description
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).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/richardgirges/express-fileupload/issues/312#issuecomment-1134912967 | Third Party Advisory |
| https://github.com/richardgirges/express-fileupload/issues/329#issuecomment-1387288644 | Third Party Advisory |
| https://www.youtube.com/watch?v=4XpofFi84KI | ExploitThird Party Advisory |
| https://github.com/richardgirges/express-fileupload/issues/312#issuecomment-1134912967 | Third Party Advisory |
| https://github.com/richardgirges/express-fileupload/issues/329#issuecomment-1387288644 | Third Party Advisory |
| https://www.youtube.com/watch?v=4XpofFi84KI | ExploitThird Party Advisory |
Track CVE-2022-27140 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-27140), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.