Vulnerability Name:

CVE-2018-1315 (CCN-141252)

Assigned:2017-12-07
Published:2018-04-04
Updated:2019-10-03
Summary:In Apache Hive 2.1.0 to 2.3.2, when 'COPY FROM FTP' statement is run using HPL/SQL extension to Hive, a compromised/malicious FTP server can cause the file to be written to an arbitrary location on the cluster where the command is run from. This is because FTP client code in HPL/SQL does not verify the destination location of the downloaded file. This does not affect hive cli user and hiveserver2 user as hplsql is a separate command line script and needs to be invoked differently.
CVSS v3 Severity:3.7 Low (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N)
3.2 Low (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): Low
Availibility (A): None
5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
4.6 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/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): None
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
5.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-732
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2018-1315

Source: CCN
Type: Apache Mailing List, Wed, 04 Apr 2018 21:58:43 GMT
CVE-2018-1315 'COPY FROM FTP' statement in HPL/SQL can write to arbitrary location if the FTP server is compromised

Source: CCN
Type: oss-sec Mailing List, Wed, 4 Apr 2018 14:58:43 -0700
CVE-2018-1315 'COPY FROM FTP' statement in HPL/SQL can write to arbitrary location if the FTP server is compromised

Source: XF
Type: UNKNOWN
apache-hive-cve20181315-sec-bypass(141252)

Source: CCN
Type: Apache Hive Web site
Apache Hive

Source: MLIST
Type: Mailing List, Mitigation, Vendor Advisory
[dev] 20180404 [SECURITY] CVE-2018-1315 'COPY FROM FTP' statement in HPL/SQL can write to arbitrary location if the FTP server is compromised

Vulnerable Configuration:Configuration 1:
  • cpe:/a:apache:hive:*:*:*:*:*:*:*:* (Version >= 2.1.0 and <= 2.3.2)

  • Configuration CCN 1:
  • cpe:/a:apache:hive:2.1.0:*:*:*:*:*:*:*
  • OR cpe:/a:apache:hive:2.3.0:*:*:*:*:*:*:*
  • OR cpe:/a:apache:hive:2.3.2:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    apache hive *
    apache hive 2.1.0
    apache hive 2.3.0
    apache hive 2.3.2