CVE-2026-62156: hdfs_fdw HiveQL injection through pushed-down IN and = ANY(array) string literals
hdfsfdw builds string literals for IN and = ANY(array) clauses pushed down to the remote Hive or Spark server without escaping single quotes. An authenticated user with only SELECT on a foreign table can supply a crafted array value that breaks out of the literal and changes the HiveQL query, which then runs on the remote server with the foreign server's credentials. The same release fixes two lower-severity issues: the JDBC connection string, including the trustStorePassword value, was written to logs, and credentials stayed in memory in cleartext after the connection was established. The issue is fixed in hdfsfdw 2.4.0. From hdfsfdw 2.4.0, hdfsfdw escapes single quotes in these literals, masks trustStorePassword in logs and clears credentials from memory after connecting.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.4.0
Event History
Frequently Asked Questions
Who can exploit the HiveQL injection issue?
An authenticated user who has only SELECT permission on an affected foreign table can exploit it by supplying a crafted array value. The resulting HiveQL runs on the remote Hive or Spark server using the foreign server's credentials.
Which query constructs are affected?
The issue affects pushed-down IN clauses and = ANY(array) clauses when hdfs_fdw constructs string literals. Single quotes in supplied array values were not escaped before the query was sent to Hive or Spark.
What version resolves the injection and related credential-handling issues?
hdfs_fdw 2.4.0 fixes the injection by escaping single quotes in these literals. It also masks trustStorePassword in logs and clears credentials from memory after a connection is established.