Arbitrary file upload in express-fileupload - CVE-2022-27140

 

Arbitrary file upload in express-fileupload - CVE-2022-27140

Published: June 20, 2023


Vulnerability identifier: #VU77538
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2022-27140
CWE-ID: CWE-434
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: romon2002
Affected software:
express-fileupload

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to insufficient validation of file extension when uploading files. A remote attacker can upload and execute arbitrary file on the system via a crafted PHP file.


How to mitigate CVE-2022-27140

Install update from vendor's website.

Sources