Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-27140
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 01:57 UTC · Revision 1
Source evidence
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).
osv:CVE-2022-27140
Complete source record
{
"id": "f9439153ceb1ec9f26812fd51e7de0d2a25800aec3d9bc8051ad009b06b457ad",
"url": "https://osv.dev/vulnerability/CVE-2022-27140",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-27140",
"summary": "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).",
"evidence": "osv:CVE-2022-27140",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2022-27140",
"aliases": [
"CVE-2022-27140"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/richardgirges/express-fileupload",
"type": "GIT",
"events": [
{
"introduced": "290f3cc838c40cedaf689432eff6b7e3242207b1"
},
{
"last_affected": "290f3cc838c40cedaf689432eff6b7e3242207b1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:express-fileupload_project:express-fileupload:1.3.1:*:*:*:*:node.js:*:*",
"range": [
{
"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"
}
}
],
"modified": "2026-10-28T02:30:52.940463921Z",
"provider": "osv",
"references": [
"https://www.youtube.com/watch?v=4XpofFi84KI",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27140.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-27140",
"https://github.com/richardgirges/express-fileupload/issues/312#issuecomment-1134912967",
"https://github.com/richardgirges/express-fileupload/issues/329#issuecomment-1387288644"
],
"provider_metadata": {
"isDisputed": true,
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27140.json"
}
},
"related_cves": [
{
"value": "CVE-2022-27140",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 521556,
"published_at": "2022-04-12T00:00:00+00:00"
}