{"id":"CVE-2022-27140","details":"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).","modified":"2026-03-14T11:39:21.340976Z","published":"2022-04-12T17:15:09.887Z","references":[{"type":"ADVISORY","url":"https://github.com/richardgirges/express-fileupload/issues/312#issuecomment-1134912967"},{"type":"ADVISORY","url":"https://github.com/richardgirges/express-fileupload/issues/329#issuecomment-1387288644"},{"type":"EVIDENCE","url":"https://www.youtube.com/watch?v=4XpofFi84KI"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/richardgirges/express-fileupload","events":[{"introduced":"0"},{"last_affected":"290f3cc838c40cedaf689432eff6b7e3242207b1"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"1.3.1"}]}}],"versions":["0.4.0","1.1.1-alpha.2","1.1.10","1.1.6","1.1.6-alpha.1","1.1.6-alpha.3","1.1.6-alpha.4","1.1.6-alpha.5","1.1.6-alpha.6","1.1.7-alpha.1","1.1.7-alpha.2","1.1.7-alpha.3","1.1.7-alpha.4","1.1.8","1.1.9","1.2.0","v0.0.6","v0.0.7","v0.1.0","v0.1.1","v0.1.2","v0.1.3","v0.1.4","v0.1.5","v0.2.0","v0.3.0","v1","v1.0.0","v1.0.0-alpha.1","v1.1.1-alpha.1","v1.1.1-alpha.2","v1.1.1-alpha.3","v1.1.1-alpha.4","v1.1.2-alpha.1","v1.1.3-alpha.1","v1.1.3-alpha.2","v1.1.4","v1.1.5","v1.2.1","v1.3.0","v1.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27140.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}