{"schemaVersion":3,"id":"CVE-2018-1315","aliases":["GHSA-p639-xxv5-j383"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-04-05T13:00:00.000Z","modified":"2024-09-17T00:05:55.849Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":3.7,"severity":"low","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Maven","score":3.7,"severity":"low","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":5.6,"impact":2.3,"computed":true}]},"epss":{"probability":0.01746,"percentile":0.77438,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.01746},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01822,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01746,"percentile":0.77438}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01822,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01746,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01746,"percentile":0.77438}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource","description":"The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/732.html"}],"affected":[{"vendor":"apache software foundation","product":"apache hive","name":"Apache Hive","label":"apache hive","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.1.0 to 2.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.1.0 to 2.3.2","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_hive"},{"vendor":"apache","product":"hive","name":"hive","label":"hive","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.1.0, ≤ 2.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.1.0, ≤ 2.3.2","eol":null,"hubHref":"/vendor/apache/hive"},{"vendor":"org.apache.hive","product":"hive","name":"org.apache.hive:hive","label":"hive","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.hive/hive","purlType":"maven","versions":[{"text":"≥ 2.1.0, < 2.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.1.0, < 2.3.3","eol":null,"hubHref":null},{"vendor":"org.apache.hive","product":"hive-exec","name":"org.apache.hive:hive-exec","label":"hive-exec","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.hive/hive-exec","purlType":"maven","versions":[{"text":"≥ 2.1.0, < 2.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.1.0, < 2.3.3","eol":null,"hubHref":null},{"vendor":"org.apache.hive","product":"hive-service","name":"org.apache.hive:hive-service","label":"hive-service","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.hive/hive-service","purlType":"maven","versions":[{"text":"≥ 2.1.0, < 2.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.1.0, < 2.3.3","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread.html/d5da94ef60312c01a8d2348466680d1b5fb70702c71a3e84e94f7933%40%3Cdev.hive.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1315","label":"nvd.nist.gov/vuln/detail/CVE-2018-1315","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-p639-xxv5-j383","label":"github.com/advisories/GHSA-p639-xxv5-j383","hostname":"github.com","tags":["Advisory"]},{"url":"https://lists.apache.org/thread.html/d5da94ef60312c01a8d2348466680d1b5fb70702c71a3e84e94f7933@%3Cdev.hive.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-04-05T13:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T00:05:55.849Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T00:50:00.958Z","stale":false,"partial":false}}