CVE-2026-62156 - hdfs_fdw HiveQL injection through pushed-down IN and = ANY(array) string literals

First Published: 2026/11/25

Last Updated: 2026/11/25

Summary

hdfs_fdw 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.

Vulnerability details

CVE-ID: CVE-2026-62156

CVSS Base Score: 6.5 Medium

CVSS Temporal Score: Undefined

CVSS Environmental Score: Undefined

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Affected products and versions

  • Affected Product: HDFS Foreign Data Wrapper (hdfs_fdw)
  • Affected Versions: hdfs_fdw 2.3.3 and earlier, on all supported PostgreSQL and EDB Postgres Advanced Server versions

Remediation/fixes

Impacted users must upgrade to hdfs_fdw 2.4.0 or later. From hdfs_fdw 2.4.0, hdfs_fdw escapes single quotes in these literals, masks trustStorePassword in logs and clears credentials from memory after connecting.

ProductVRMFRemediation/First Fix
hdfs_fdw2.3.3 and earlierUpdate to hdfs_fdw 2.4.0 or later

Mitigation

Until you can upgrade, reduce exposure as follows:

  • Grant the Hive or Spark account used by the foreign server only the privileges the foreign tables need.
  • Restrict access to the PostgreSQL server logs. The log_remote_sql option writes remote SQL, including literal values, to the server log.

References

Acknowledgement

Source: Discovered internally by EDB during a security review of hdfs_fdw.

Change history

  • 2026/11/25: Original Copy Published

Disclaimer

This document is provided on an "as is" basis and does not imply any kind of guarantee or warranty, including the warranties of merchantability or fitness for a particular use. Your use of the information on the document is at your own risk. EDB reserves the right to change or update this document at any time. Customers are therefore recommended to always view the latest version of this document.


Could this page be better? Report a problem or suggest an addition!