CVE-2026-62156
Received Received - Intake

SQL Injection in hdfs_fdw Foreign Data Wrapper

Vulnerability report for CVE-2026-62156, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-25

Last updated on: 2026-11-25

Assigner: EnterpriseDB Corporation

Description

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. The issue is fixed in hdfs_fdw 2.4.0. 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-25
Last Modified
2026-11-25
Generated
2026-11-25
AI Q&A
2026-11-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
EnterpriseDB HDFS Foreign Data Wrapper (hdfs_fdw) From 0 (inc) to 2.4.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-532 The product writes sensitive information to a log file.
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
CWE-316 The product stores sensitive information in cleartext in memory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

hdfs_fdw is a PostgreSQL extension that allows querying Hive or Spark servers via foreign tables. This vulnerability involves improper escaping of single quotes in array values used in SQL clauses like IN or = ANY. An authenticated user with SELECT privileges on a foreign table can inject malicious input that alters the HiveQL query executed on the remote server under the foreign server's credentials.

Detection Guidance

Check if hdfs_fdw version is below 2.4.0 using: SELECT extversion FROM pg_extension WHERE extname = 'hdfs_fdw';. If version is older, the system is vulnerable. Review PostgreSQL logs for suspicious HiveQL queries containing unescaped single quotes or unexpected clauses.

Impact Analysis

An attacker could manipulate queries to access unauthorized data, execute unintended commands, or escalate privileges on the remote Hive or Spark server. This could lead to data breaches, unauthorized modifications, or service disruption, all performed with the permissions of the foreign server account.

Compliance Impact

This vulnerability could violate compliance requirements by enabling unauthorized data access or modification. GDPR requires protecting personal data, and HIPAA mandates safeguarding protected health information. A successful exploit could lead to data exposure, resulting in legal penalties, reputational damage, and loss of trust.

Mitigation Strategies

Upgrade hdfs_fdw to version 2.4.0 or later immediately. Restart PostgreSQL to clear credentials from memory. Review and rotate any exposed credentials, especially those in JDBC connection strings logged previously.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-62156. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...