p PatchFirst

CVE-2026-62153

CVE-2026-62153 · mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option

CVSS 6.4 · Medium · EPSS 0.7% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="postgresql-mysql-fdw"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • mysql foreign data wrapper (mysql_fdw)

    Versions
    • ≥ 0, < 2.10.0: Affected (custom)

    Update to 2.10.0

  • postgresql-mysql-fdw Ubuntu 16.04 LTS

    Versions
    • 2.0.1-1
    • 2.1.2-1
    • 2.1.2-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • postgresql-mysql-fdw Ubuntu 18.04 LTS

    Versions
    • 2.2.0-2
    • 2.3.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • postgresql-mysql-fdw Ubuntu 20.04 LTS

    Versions
    • 2.5.1-1build1
    • 2.5.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • postgresql-mysql-fdw Ubuntu 22.04 LTS

    Versions
    • 2.5.5-2
    • 2.7.0-1
    • 2.7.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • postgresql-mysql-fdw Ubuntu 24.04 LTS

    Versions
    • 2.9.1-1
    • 2.9.1-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • postgresql-mysql-fdw Ubuntu 26.10

    Versions
    • 2.9.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • postgresql-mysql-fdw Ubuntu 26.04 LTS

    Versions
    • 2.9.2-2build1
    • 2.9.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →