CVE-2026-62153
Received Received - Intake

SQL Injection in mysql_fdw Foreign Data Wrapper

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

mysql_fdw inserts several values into statements sent to the remote MySQL server without escaping them: the dbname and table_name options in ANALYZE, the remote schema name and the LIMIT TO and EXCEPT table names in IMPORT FOREIGN SCHEMA, and the sql_mode option in the SET sql_mode command. A user who can create or alter foreign tables or foreign servers, or run IMPORT FOREIGN SCHEMA, can break out of the string literal and run arbitrary SQL on the remote MySQL server with the credentials of the user mapping. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, mysql_fdw escapes these names and accepts only letters, digits, underscores and commas in sql_mode.

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

The vulnerability in mysql_fdw allows users with certain privileges to inject unescaped values into SQL statements sent to a remote MySQL server. This can lead to arbitrary SQL execution on the server using the credentials of the user mapping. The issue affects options like dbname, table_name, remote schema names, and sql_mode settings.

Detection Guidance

Check if mysql_fdw version is below 2.10.0 by running: SELECT extversion FROM pg_extension WHERE extname = 'mysql_fdw'; If version is older, the system is vulnerable.

Impact Analysis

An attacker with the ability to create or alter foreign tables, foreign servers, or run IMPORT FOREIGN SCHEMA could exploit this to execute malicious SQL commands on the remote MySQL server. This may result in unauthorized data access, modification, or deletion.

Mitigation Strategies

Upgrade mysql_fdw to version 2.10.0 or later immediately. Revoke privileges for users who can create or alter foreign tables or run IMPORT FOREIGN SCHEMA until the upgrade is complete.

Chat Assistant

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