Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-27304

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-27304
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:36 UTC · Revision 1

Source evidence

CVE-2020-27304

core-osv · Original source

Published 21 Oct 2021, 16:15 UTC

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

osv:CVE-2020-27304
Complete source record
{
  "id": "f5035abcc9aa5d111cca1ac324b201872f4f998a9f6ec3396859213302d4fc24",
  "url": "https://osv.dev/vulnerability/CVE-2020-27304",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-27304",
    "summary": "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",
    "evidence": "osv:CVE-2020-27304",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-27304",
      "aliases": [
        "CVE-2020-27304"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/civetweb/civetweb",
              "type": "GIT",
              "events": [
                {
                  "introduced": "016535194f6dba8e534b6eec6b9d433e6fb0a9b2"
                },
                {
                  "fixed": "eefb26f82b233268fc98577d265352720d477ba4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:civetweb_project:civetweb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8"
                      },
                      {
                        "fixed": "1.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.14",
            "v1.13",
            "v1.11",
            "v1.10",
            "v1.9.1",
            "v1.9",
            "v1.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-27304.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:31.088480494Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf",
        "https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ",
        "https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf",
        "https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "siemens:sinec_infrastructure_network_services",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.0.1.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-27304",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 432723,
  "published_at": "2021-10-21T16:15:07.737+00:00"
}