LOW 3.7

CVE-2018-1315

Incorrect Permission Assignment for Critical Resource in Apache hive

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.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.apache.hive » hive
>= 2.1.0, < 2.3.3
2.3.3
org.apache.hive » hive-exec
>= 2.1.0, < 2.3.3
2.3.3
org.apache.hive » hive-service
>= 2.1.0, < 2.3.3
2.3.3

Blast radius

3affected artifacts
3,904affected versions
415dependent artifacts (est.)
53,444dependent versions

65% of the dependent artifacts (272) still pull an affected version in their latest release.

DepthDependent versions
Direct
28,173
2 hops
12,759
3 hops
8,958
4 hops
2,428
5 hops
825
6 hops
301

Most used dependents

Computed from the dependency graph of build 20261202.2045 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.