Critical severity · published Apr 12, 2022
CVE-2022-27140
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
9.8
CVSS
2.9%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.9% · higher than 87% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EX
Express-fileupload · Express-fileupload Project
1.3.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-27140
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-27140
Third 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
Exploit
https://www.youtube.com/watch?v=4XpofFi84KI
More from Express-fileupload
9.8
CVE-2020-7699
This affects the package express-fileupload before 1.1.8
7.5
CVE-2022-27261
An arbitrary file write vulnerability in Express-FileUpload v1.3.1 allows attackers to upload multiple files with the same name, causing an overwrite of files in the web…
