IBMStreams / streamsx.parquet

(Incubation) Toolkit providing adapters to Parquet
https://ibmstreams.github.io/streamsx.parquet
Other
5 stars 5 forks source link

Examine and resolve org.apache.hive:hive-exec vulnerability #6

Open schubon opened 5 years ago

schubon commented 5 years ago

CVE-2018-11777 Vulnerable versions: < 2.3.4 Patched version: 2.3.4

In Apache Hive 2.3.3, 3.1.0 and earlier, local resources on HiveServer2 machines are not properly protected against malicious user if ranger, sentry or sql standard authorizer is not in use.

CVE-2018-1284 Vulnerable versions: >= 0.6.0, < 2.3.3 Patched version: 2.3.3

In Apache Hive 0.6.0 to 2.3.2, malicious user might use any xpath UDFs (xpath/xpath_string/xpath_boolean/xpath_number/xpath_double/xpath_float/xpath_long/xpath_int/xpath_short) to expose the content of a file on the machine running HiveServer2 owned by HiveServer2 user (usually hive) if hive.server2.enable.doAs=false.

Remediation

Upgrade org.apache.hive:hive-exec to version 2.3.4 or later. For example:

<dependency>
  <groupId>org.apache.hive</groupId>
  <artifactId>hive-exec</artifactId>
  <version>[2.3.4,)</version>
</dependency>
markheger commented 4 years ago

Proposed update to 2.3.4 does not work, because current operator code used very old parquet-hadoop library from com.twitter. Hence it requires replacement of the parquet/hadoop client. Parquet client com.twitter should be replaced by org.apache.parquet.