Incorrect Permission Assignment for Critical Resource in Apache hive
Apache Software Foundation Apache Hive
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.hive:hive Maven |
|
|
| org.apache.hive:hive-exec Maven |
|
|
| org.apache.hive:hive-service Maven |
Apache Software Foundation Apache Hive
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.hive:hive Maven |
|
|
| org.apache.hive:hive-exec Maven |
|
|
| org.apache.hive:hive-service Maven |
|
|
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.
From the CVE record · apache
Apache Hive 2.1.0 through 2.3.2 does not verify the download destination when an HPL/SQL COPY FROM FTP statement runs. If that statement connects to a compromised or malicious FTP server, the server can cause a file to be written to an arbitrary location on the cluster where the command runs. Hive CLI and HiveServer2 users are not affected by this HPL/SQL command.
Check deployments using Apache Hive or the Maven packages org.apache.hive:hive, org.apache.hive:hive-exec, or org.apache.hive:hive-service at versions 2.1.0 through 2.3.2.