{"schemaVersion":3,"id":"CVE-2020-27304","aliases":["UBUNTU-CVE-2020-27304","DEBIAN-CVE-2020-27304","openSUSE-SU-2021:1424-1"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2021-10-21T15:42:23.000Z","modified":"2024-08-04T16:11:36.691Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03241,"percentile":0.88104,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.03241},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03241,"percentile":0.88104}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03241,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03241,"percentile":0.88104}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_56BCC3D7ECB16872","name":"Exploit Reference (jfrog.com)","source":"reference","url":"https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-23","name":"Relative Path Traversal","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as \"..\" that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/23.html"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"civetweb_project","product":"civetweb","name":"civetweb","label":"civetweb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.8, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.8, < 1.15","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.8, < unspecified | ≥ 1.8, < 1.15","eol":null,"hubHref":"/vendor/civetweb_project/civetweb"},{"vendor":"debian","product":"civetweb","name":"civetweb","label":"civetweb","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/civetweb","purlType":"deb","versions":[{"text":"< 1.15+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.15+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"civetweb","name":"civetweb","label":"civetweb","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/civetweb","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"opensuse","product":"civetweb&distro=openSUSE Leap 15.2","name":"civetweb","label":"civetweb&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/civetweb&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 1.15-lp152.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.15-lp152.2.3.1","eol":null,"hubHref":null},{"vendor":"siemens","product":"sinec_infrastructure_network_services","name":"sinec infrastructure network services","label":"sinec_infrastructure_network_services","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1.1","eol":null,"hubHref":"/vendor/siemens/sinec_infrastructure_network_services"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/","label":"jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/","hostname":"jfrog.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ","label":"groups.google.com/g/civetweb/c/yPBxNXdGgJQ","hostname":"groups.google.com","tags":["X Refsource MISC","Mailing List","Third Party Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","label":"cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","hostname":"cert-portal.siemens.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","label":"cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","hostname":"cert-portal.siemens.com","tags":["X Refsource CONFIRM"]},{"url":"https://ubuntu.com/security/CVE-2020-27304","label":"ubuntu.com/security/CVE-2020-27304","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-27304","label":"www.cve.org/CVERecord?id=CVE-2020-27304","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-27304","label":"security-tracker.debian.org/tracker/CVE-2020-27304","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/YJTZUANR73SYTZDQ6GMWGRR5O4MCEJA4/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1191938","label":"bugzilla.suse.com/1191938","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2020-27304","label":"www.suse.com/security/cve/CVE-2020-27304","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-27304","label":"nvd.nist.gov/vuln/detail/CVE-2020-27304","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-10-21T15:42:23.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T16:11:36.691Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:20:59.312Z","stale":false,"partial":false}}