{"api_version":"1","generated_at":"2026-04-23T03:25:23+00:00","cve":"CVE-2020-27304","urls":{"html":"https://cve.report/CVE-2020-27304","api":"https://cve.report/api/cve/CVE-2020-27304.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-27304","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-27304"},"summary":{"title":"CVE-2020-27304","description":"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","state":"PUBLIC","assigner":"vuln@vdoo.com","published_at":"2021-10-21 16:15:00","updated_at":"2022-06-14 11:15:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/","name":"https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/","refsource":"MISC","tags":[],"title":"Directory Traversal Vulnerability Found in CivetWeb | JFrog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","name":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","refsource":"CONFIRM","tags":[],"title":"","mime":"application/pdf","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ","name":"https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ","refsource":"MISC","tags":[],"title":"File upload security vulnerability (in example code), CivetWeb V1.8-V1.14","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","name":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","refsource":"CONFIRM","tags":[],"title":"","mime":"application/pdf","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-27304","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-27304","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"27304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"civetweb_project","cpe5":"civetweb","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"27304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"siemens","cpe5":"sinec_infrastructure_network_services","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-27304","qid":"590976","title":"Siemens SCALANCE LPE9403 Third-Party Multiple Vulnerabilities (ICSA-22-167-09) (SSA-222547)"},{"cve":"CVE-2020-27304","qid":"751307","title":"OpenSUSE Security Update for civetweb (openSUSE-SU-2021:1424-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2020-27304","ASSIGNER":"vuln@vdoo.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"civetweb_project","product":{"product_data":[{"product_name":"civetweb","version":{"version_data":[{"version_value":"1.15","version_affected":"!>="},{"version_value":"1.8","version_affected":">="}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-23"}]}]},"references":{"reference_data":[{"url":"https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/","refsource":"MISC","name":"https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/"},{"url":"https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ","refsource":"MISC","name":"https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ"},{"refsource":"CONFIRM","name":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf"},{"refsource":"CONFIRM","name":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf"}]},"description":{"description_data":[{"lang":"eng","value":"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"}]}},"nvd":{"publishedDate":"2021-10-21 16:15:00","lastModifiedDate":"2022-06-14 11:15:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:civetweb_project:civetweb:*:*:*:*:*:*:*:*","versionStartIncluding":"1.8","versionEndExcluding":"1.15","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.1.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"27304","Ordinal":"188738","Title":"CVE-2020-27304","CVE":"CVE-2020-27304","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"27304","Ordinal":"1","NoteData":"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","Type":"Description","Title":null},{"CveYear":"2020","CveId":"27304","Ordinal":"2","NoteData":"2021-10-21","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"27304","Ordinal":"3","NoteData":"2021-10-21","Type":"Other","Title":"Modified"}]}}}