CVE-2026-62152
Received Received - Intake

Privilege Escalation in mysql_fdw via File Read and SQL Injection

Vulnerability report for CVE-2026-62152, 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 accepts several security-sensitive connection options from roles that are not superusers. A role with USAGE on the mysql_fdw foreign data wrapper can set init_command, which runs arbitrary SQL on the remote MySQL server at every connection, including connections made with other users' mappings on a shared foreign server. The same role can set mysql_default_file, ssl_key, ssl_cert, ssl_ca and ssl_capath, which name files read from the PostgreSQL server host, allowing server-side file reads and connection redirection. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, only superusers can set init_command, mysql_default_file, ssl_key, ssl_cert, ssl_ca and ssl_capath.

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-73 The product allows user input to control or influence paths or file names that are used in filesystem operations.
CWE-269 The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

mysql_fdw allows non-superuser roles with USAGE on the foreign data wrapper to set sensitive connection options like init_command, which executes arbitrary SQL on the remote MySQL server for every connection, including those made by other users. It also permits setting file-related options like ssl_key and ssl_cert, enabling server-side file reads and connection redirection. The vulnerability is fixed in mysql_fdw 2.10.0 by restricting these options to superusers only.

Detection Guidance

Check if mysql_fdw versions older than 2.10.0 are installed by running: SELECT extversion FROM pg_extension WHERE extname = 'mysql_fdw'; If the version is below 2.10.0, the system is vulnerable. Review PostgreSQL role permissions with: SELECT rolname, rolsuper FROM pg_roles WHERE rolname NOT IN ('postgres') AND rolsuper = false; Check for suspicious init_command settings in foreign server configurations.

Impact Analysis

An attacker with USAGE privileges could execute arbitrary SQL on your MySQL server, potentially accessing or modifying sensitive data. They could also read files on your PostgreSQL server host or redirect connections to malicious servers, leading to data breaches or further attacks.

Compliance Impact

This vulnerability could lead to unauthorized data access or manipulation, violating GDPR's data protection principles and HIPAA's security requirements for protected health information. Non-compliance may result in legal penalties, reputational damage, and loss of trust.

Mitigation Strategies

Upgrade mysql_fdw to version 2.10.0 or later immediately. Revoke USAGE permission on mysql_fdw from non-superuser roles: REVOKE USAGE ON FOREIGN DATA WRAPPER mysql_fdw FROM role_name;; Audit and remove any non-superuser set init_command or file-read options from foreign server configurations.

Chat Assistant

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