GitHub Advisoryadvisory · Maven

GHSA-p639-xxv5-j383 Incorrect Permission Assignment for Critical Resource in Apache hive

LOW Published 2018-11-21 Modified 2022-09-14 Official page ↗
Aliases
CVE-2018-1315
Ecosystem
Maven
Packages
org.apache.hive:hive, org.apache.hive:hive-exec, org.apache.hive:hive-service
Severity
Low
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-732
Reviewed
2020-06-16

Affected packages

• Maven org.apache.hive:hive: >= 2.1.0, < 2.3.3 → fixed in 2.3.3 • Maven org.apache.hive:hive-exec: >= 2.1.0, < 2.3.3 → fixed in 2.3.3 • Maven org.apache.hive:hive-service: >= 2.1.0, < 2.3.3 → fixed in 2.3.3

Description

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.

Related

Alias · CVE (1)

  • CVE-2018-1315 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… vulnerability

Weakness · CWE (1)

  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness

References