SQL Injection Affecting org.apache.hive:hive-jdbc package, versions [0.7.1, 2.3.3)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEHIVE-32204
  • published9 Apr 2018
  • disclosed5 Apr 2018
  • creditBear Giles

Introduced: 5 Apr 2018

CVE-2018-1282  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade org.apache.hive:hive-jdbc to version 2.3.3 or higher.

Overview

org.apache.hive:hive-jdbc facilitates reading, writing, and managing large datasets residing in distributed storage using SQL.

Affected versions of the package are vulnerable to SQL Injection attacks if the input parameters are not properly cleaned. An attacker may be send specially crafted arguments to bypass the argument escaping/cleanup that JDBC driver does in the PreparedStatement implementation.

CVSS Scores

version 3.1