From announce-return-4500-archive-asf-public=cust-asf.ponee.io@apache.org Thu Apr 5 00:07:19 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B483218064F for ; Thu, 5 Apr 2018 00:07:18 +0200 (CEST) Received: (qmail 78869 invoked by uid 500); 4 Apr 2018 22:07:14 -0000 Mailing-List: contact announce-help@apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list announce@apache.org Delivered-To: moderator for announce@apache.org Received: (qmail 32283 invoked by uid 99); 4 Apr 2018 21:58:45 -0000 X-Gm-Message-State: ALQs6tAlHlj7gSdkUvJumTVDjN6nBMEtxL/J1RsS1i0b+lIG15lYZvb+ 9KBgr2feRD5f8+qKbLvprKWOpD7gVwyKuVb+uFI= X-Google-Smtp-Source: AIpwx4+xFnht58lOzxipq7kDuiFF8CK+wNJsORCo1YG18foPCUi3/htcEwuCxPlH5BicERHJrLV33RNs6HKYcxWa9Ng= X-Received: by 10.107.101.21 with SMTP id z21mr17326419iob.3.1522879123722; Wed, 04 Apr 2018 14:58:43 -0700 (PDT) MIME-Version: 1.0 From: Daniel Dai Date: Wed, 4 Apr 2018 14:58:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: [SECURITY] CVE-2018-1315 'COPY FROM FTP' statement in HPL/SQL can write to arbitrary location if the FTP server is compromised To: user@hive.apache.org, dev@hive.apache.org, announce@apache.org, security , oss-security@lists.openwall.com, Danny Grander Content-Type: text/plain; charset="UTF-8" CVE-2018-1315: 'COPY FROM FTP' statement in HPL/SQL can write to arbitrary location if the FTP server is compromised Severity: Moderate Vendor: The Apache Software Foundation Versions Affected: Hive 2.1.0 to 2.3.2 Description: 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. Mitigation: User who use HPL/SQL with Hive 2.1.0 through 2.3.2 should upgrade to 2.3.3 which removes support for "COPY FROM FTP". Alternatively, the usage of HPL/SQL can be disabled through other means. Credit: This issue was discovered by Danny Grander of Snyk