CVE-2022-27140: An arbitrary file upload vulnerability in the file upload module of express-fileupload 1.3.1 allows attackers
CVE-2022-27140 is a critical-severity flaw (CVSS 9.8) affecting express-fileupload. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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).
Why this priority
- Critical severity
- Public exploit reference
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 2.9% (top 13%) |
| CISA exploited list | No |
| Weakness | CWE-434 |
| Published | 2022-04-12 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-27140?
express-fileupload: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-27140 being exploited?
CVE-2022-27140 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-27140 affect?
CVE-2022-27140 affects express-fileupload. Severity is critical (CVSS 9.8). 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 "i
How urgent is CVE-2022-27140?
Priority 66/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2022-27261 HIGH 7.5 DOWNGRADE An arbitrary file write vulnerability in Express-FileUpload v1.3.1 allows attackers to upload multiple files w
- CVE-2020-7699 HIGH 7.5 UPGRADE MITIGATE This affects the package express-fileupload before 1.1.8