{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.7.5"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fc68b8c92c8c202d8cc58d83629d6e8c8701fc47"
            },
            {
              "fixed": "3c785326c63a34aa1799a639ae185bc9453cb447"
            }
          ],
          "repo": "https://github.com/drogonframework/drogon",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243"
  ],
  "database_specific": {
    "cna_assigner": "snyk",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25297.json"
  },
  "details": "This affects the package drogonframework/drogon before 1.7.5. The unsafe handling of file names during upload using HttpFile::save() method may enable attackers to write files to arbitrary locations outside the designated target folder.",
  "id": "CVE-2022-25297",
  "modified": "2026-07-08T05:38:17.063357807Z",
  "published": "2022-02-21T08:00:17.382Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25297.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25297"
    },
    {
      "type": "ADVISORY",
      "url": "https://snyk.io/vuln/SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243"
    },
    {
      "type": "FIX",
      "url": "https://github.com/drogonframework/drogon/commit/3c785326c63a34aa1799a639ae185bc9453cb447"
    },
    {
      "type": "FIX",
      "url": "https://github.com/drogonframework/drogon/pull/1174"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Arbitrary File Write"
}