{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.3.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "290f3cc838c40cedaf689432eff6b7e3242207b1"
            }
          ],
          "repo": "https://github.com/richardgirges/express-fileupload",
          "type": "GIT"
        }
      ]
    }
  ],
  "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).",
  "id": "CVE-2022-27140",
  "modified": "2026-03-13T21:57:40.264600023Z",
  "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"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}