{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.0.1.1"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "1.8"
              },
              {
                "fixed": "1.15"
              }
            ]
          },
          "events": [
            {
              "introduced": "016535194f6dba8e534b6eec6b9d433e6fb0a9b2"
            },
            {
              "fixed": "eefb26f82b233268fc98577d265352720d477ba4"
            }
          ],
          "repo": "https://github.com/civetweb/civetweb",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "The CivetWeb web library does not validate uploaded filepaths when running on an OS other than Windows, when using the built-in HTTP form-based file upload mechanism, via the mg_handle_form_request API. Web applications that use the file upload form handler, and use parts of the user-controlled filename in the output path, are susceptible to directory traversal",
  "id": "CVE-2020-27304",
  "modified": "2026-03-13T21:47:07.749554799Z",
  "published": "2021-10-21T16:15:07.737Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf"
    },
    {
      "type": "ADVISORY",
      "url": "https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ"
    },
    {
      "type": "FIX",
      "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf"
    },
    {
      "type": "EVIDENCE",
      "url": "https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}