Skip to content

Incorrect Permission Assignment for Critical Resource in Apache hive

Low severity GitHub Reviewed Published Nov 21, 2018 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

maven org.apache.hive:hive (Maven)

Affected versions

>= 2.1.0, < 2.3.3

Patched versions

2.3.3
maven org.apache.hive:hive-exec (Maven)
>= 2.1.0, < 2.3.3
2.3.3
maven org.apache.hive:hive-service (Maven)
>= 2.1.0, < 2.3.3
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.

References

Published to the GitHub Advisory Database Nov 21, 2018
Reviewed Jun 16, 2020
Last updated Jan 9, 2023

Severity

Low
3.7
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Weaknesses

CVE ID

CVE-2018-1315

GHSA ID

GHSA-p639-xxv5-j383

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.