{"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-08-12T03:51:35.882385570Z","published":"2022-04-12T00:00:00Z","database_specific":{"isDisputed":true,"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27140.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://www.youtube.com/watch?v=4XpofFi84KI"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27140.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-27140"},{"type":"REPORT","url":"https://github.com/richardgirges/express-fileupload/issues/312#issuecomment-1134912967"},{"type":"REPORT","url":"https://github.com/richardgirges/express-fileupload/issues/329#issuecomment-1387288644"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/richardgirges/express-fileupload","events":[{"introduced":"290f3cc838c40cedaf689432eff6b7e3242207b1"},{"last_affected":"290f3cc838c40cedaf689432eff6b7e3242207b1"}],"database_specific":{"cpe":"cpe:2.3:a:express-fileupload_project:express-fileupload:1.3.1:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"1.3.1"},{"last_affected":"1.3.1"}],"source":"CPE_STRING"}}],"versions":["1.3.1","v1.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27140.json"}}],"schema_version":"1.9.0"}