Live threats

All CVEs / Apache

CVE-2018-1315Apache Hive

Low 3.7 No auth needed

Priority
37
CVSS 3.0
3.7
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Apr 5, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-732
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hive.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.hive:hive ≥ 2.1.0 < 2.3.3 2.3.3 —
Maven org.apache.hive:hive-exec ≥ 2.1.0 < 2.3.3 2.3.3 —
Maven org.apache.hive:hive-service ≥ 2.1.0 < 2.3.3 2.3.3 —

Per OSV / GitHub Advisories (GHSA-p639-xxv5-j383). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachehive≥ 2.1.0 ≤ 2.3.2

Official sources

References

Links published by the sources. Open them with care.