Skip to content
Heist/ feed
Back to feed
Low

Security advisory

Type: advisorySources: OSVCVE: 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 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-1315
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:17 UTC · Revision 1

Source evidence

CVE-2018-1315

core-osv · Original source

Published 5 Apr 2018, 13:29 UTC

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.

osv:CVE-2018-1315
Complete source record
{
  "id": "32d0735c60cfe8f09d046405fb77dd09648a801888569df2a9ac503c4efb2830",
  "url": "https://osv.dev/vulnerability/CVE-2018-1315",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-1315",
    "summary": "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.",
    "evidence": "osv:CVE-2018-1315",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2018-1315",
      "aliases": [
        "CVE-2018-1315",
        "GHSA-p639-xxv5-j383"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/hive",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9265bc24d75ac945bde9ce1a0999fddd8f2aae29"
                },
                {
                  "last_affected": "857a9fd8ad725a53bd95c1b2d6612f9b1155f44d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:hive:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.1.0"
                      },
                      {
                        "last_affected": "2.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1315.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:51.255696310Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread.html/d5da94ef60312c01a8d2348466680d1b5fb70702c71a3e84e94f7933%40%3Cdev.hive.apache.org%3E"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-1315",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 437435,
  "published_at": "2018-04-05T13:29:01.09+00:00"
}