CVE-2026-62154
Received Received - Intake

SQL Injection in mysql_fdw via IMPORT FOREIGN SCHEMA

Vulnerability report for CVE-2026-62154, 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

During IMPORT FOREIGN SCHEMA, mysql_fdw copies column metadata returned by the remote MySQL server into the CREATE FOREIGN TABLE statements it runs locally without quoting it. The COLUMN_DEFAULT value is placed directly in the DEFAULT clause, and the name of the generated ENUM type is inserted unquoted. A malicious or compromised MySQL server, or an attacker who can tamper with the connection, can return crafted information_schema metadata and run arbitrary SQL in the local PostgreSQL session of the user who runs IMPORT FOREIGN SCHEMA. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, mysql_fdw quotes these values before building the statements.

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 MySQL Foreign Data Wrapper (mysql_fdw) From 0 (inc) to 2.10.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves mysql_fdw copying unquoted column metadata from a remote MySQL server during IMPORT FOREIGN SCHEMA. A malicious server or attacker can inject crafted metadata to execute arbitrary SQL in the local PostgreSQL session of the user running the command.

Detection Guidance

Check the version of mysql_fdw installed on your PostgreSQL server. Vulnerable versions are below 2.10.0. Run: SELECT * FROM pg_available_extensions WHERE name = 'mysql_fdw'; and verify the version.

Impact Analysis

An attacker could gain control over the PostgreSQL session, allowing them to run unauthorized SQL commands. This could lead to data theft, manipulation, or unauthorized access to the database.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Compliance may be compromised if sensitive data is exposed or altered.

Mitigation Strategies

Upgrade mysql_fdw to version 2.10.0 or later. This version quotes metadata values to prevent SQL injection. Follow your distribution's update process or compile from source.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-62154. 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...