Vulnerability Name:

CVE-2020-27304 (CCN-211888)

Assigned:2020-10-19
Published:2021-10-19
Updated:2022-06-14
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
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.7 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:7.5 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
9.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-22
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2020-27304

Source: CONFIRM
Type: UNKNOWN
https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf

Source: CONFIRM
Type: Patch, Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf

Source: XF
Type: UNKNOWN
civetweb-cve202027304-dir-trav(211888)

Source: CCN
Type: CivetWeb GIT Repository
CivetWeb

Source: MISC
Type: Mailing List, Third Party Advisory
https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ

Source: CCN
Type: JFrog Blog, October 19, 2021
CVE-2020-27304 - RCE via Directory Traversal in CivetWeb HTTP server

Source: MISC
Type: Exploit, Third Party Advisory
https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2020-27304

Vulnerable Configuration:Configuration 1:
  • cpe:/a:civetweb_project:civetweb:*:*:*:*:*:*:*:* (Version >= 1.8 and < 1.15)

  • Configuration 2:
  • cpe:/a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:* (Version < 1.0.1.1)

  • Configuration CCN 1:
  • cpe:/a:civetweb_project:civetweb:1.14:*:*:*:*:*:*:*
  • OR cpe:/a:civetweb_project:civetweb:1.13:*:*:*:*:*:*:*
  • OR cpe:/a:civetweb_project:civetweb:1.12:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:111112
    P
    Security update for civetweb (Moderate)
    2021-10-31
    BACK
    civetweb_project civetweb *
    siemens sinec infrastructure network services *
    civetweb_project civetweb 1.14
    civetweb_project civetweb 1.13
    civetweb_project civetweb 1.12