Search

Find a vulnerability

Search criteria

    8 vulnerabilities found for MySQL Foreign Data Wrapper (mysql_fdw) by EnterpriseDB

    CVE-2026-62154 (GCVE-0-2026-62154)

    Vulnerability from nvd – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:16
    VLAI
    Title
    mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: total
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:16 UTC
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62154",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:16:17.930517Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:16:57.031Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:23.091Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662154/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62154",
        "datePublished": "2026-11-25T16:36:23.091Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:16:57.031Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62153 (GCVE-0-2026-62153)

    Vulnerability from nvd – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:18
    VLAI
    Title
    mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:18 UTC
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62153",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:18:05.978505Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:18:20.705Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 6.4,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:22.735Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662153/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62153",
        "datePublished": "2026-11-25T16:36:22.735Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:18:20.705Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62152 (GCVE-0-2026-62152)

    Vulnerability from nvd – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:19
    VLAI
    Title
    mysql_fdw allows non-superusers to set connection options that run SQL and read server files
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:19 UTC
    CWE
    • CWE-269 - Improper Privilege Management
    • CWE-73 - External Control of File Name or Path
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62152",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:19:11.414513Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:19:20.009Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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\u0027 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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:H",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-269",
                  "description": "CWE-269 Improper Privilege Management",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-73",
                  "description": "CWE-73 External Control of File Name or Path",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:22.269Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662152/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw allows non-superusers to set connection options that run SQL and read server files"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62152",
        "datePublished": "2026-11-25T16:36:22.269Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:19:20.009Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62151 (GCVE-0-2026-62151)

    Vulnerability from nvd – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:20
    VLAI
    Title
    mysql_fdw SQL injection through a multi-byte character set escaping bypass
    Summary
    mysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware. When the connection uses a multi-byte character set such as GBK, SJIS or Big5 and MySQL's default backslash escaping is in effect, a crafted value whose trailing byte is 0x5C absorbs the escaping backslash and leaves the following quote unescaped. The routine handles every pushed-down string constant, including ordinary WHERE-clause literals, so an authenticated user with only SELECT on a foreign table can break out of the 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 forces NO_BACKSLASH_ESCAPES into the session sql_mode and escapes string literals by doubling single quotes.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:20 UTC
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62151",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:20:17.642092Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:20:35.713Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "mysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware. When the connection uses a multi-byte character set such as GBK, SJIS or Big5 and MySQL\u0027s default backslash escaping is in effect, a crafted value whose trailing byte is 0x5C absorbs the escaping backslash and leaves the following quote unescaped. The routine handles every pushed-down string constant, including ordinary WHERE-clause literals, so an authenticated user with only SELECT on a foreign table can break out of the 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 forces NO_BACKSLASH_ESCAPES into the session sql_mode and escapes string literals by doubling single quotes."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:21.858Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662151/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw SQL injection through a multi-byte character set escaping bypass"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62151",
        "datePublished": "2026-11-25T16:36:21.858Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:20:35.713Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62154 (GCVE-0-2026-62154)

    Vulnerability from cvelistv5 – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:16
    VLAI
    Title
    mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: total
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:16 UTC
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62154",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:16:17.930517Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:16:57.031Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:23.091Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662154/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62154",
        "datePublished": "2026-11-25T16:36:23.091Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:16:57.031Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62153 (GCVE-0-2026-62153)

    Vulnerability from cvelistv5 – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:18
    VLAI
    Title
    mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:18 UTC
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62153",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:18:05.978505Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:18:20.705Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 6.4,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:22.735Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662153/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62153",
        "datePublished": "2026-11-25T16:36:22.735Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:18:20.705Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62152 (GCVE-0-2026-62152)

    Vulnerability from cvelistv5 – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:19
    VLAI
    Title
    mysql_fdw allows non-superusers to set connection options that run SQL and read server files
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:19 UTC
    CWE
    • CWE-269 - Improper Privilege Management
    • CWE-73 - External Control of File Name or Path
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62152",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:19:11.414513Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:19:20.009Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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\u0027 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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:H",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-269",
                  "description": "CWE-269 Improper Privilege Management",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-73",
                  "description": "CWE-73 External Control of File Name or Path",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:22.269Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662152/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw allows non-superusers to set connection options that run SQL and read server files"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62152",
        "datePublished": "2026-11-25T16:36:22.269Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:19:20.009Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62151 (GCVE-0-2026-62151)

    Vulnerability from cvelistv5 – Published: 2026-11-25 16:36 – Updated: 2026-11-25 17:20
    VLAI
    Title
    mysql_fdw SQL injection through a multi-byte character set escaping bypass
    Summary
    mysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware. When the connection uses a multi-byte character set such as GBK, SJIS or Big5 and MySQL's default backslash escaping is in effect, a crafted value whose trailing byte is 0x5C absorbs the escaping backslash and leaves the following quote unescaped. The routine handles every pushed-down string constant, including ordinary WHERE-clause literals, so an authenticated user with only SELECT on a foreign table can break out of the 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 forces NO_BACKSLASH_ESCAPES into the session sql_mode and escapes string literals by doubling single quotes.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 17:20 UTC
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    EDB CNA under the mitre root
    CNA scorecard C 71/100 over 28 records in the last 180 days details
    References
    Impacted products
    Date Public
    2026-11-25 11:15
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62151",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T17:20:17.642092Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T17:20:35.713Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "MySQL Foreign Data Wrapper (mysql_fdw)",
              "repo": "https://github.com/EnterpriseDB/mysql_fdw",
              "vendor": "EnterpriseDB",
              "versions": [
                {
                  "lessThan": "2.10.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "datePublic": "2026-11-25T11:15:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "mysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware. When the connection uses a multi-byte character set such as GBK, SJIS or Big5 and MySQL\u0027s default backslash escaping is in effect, a crafted value whose trailing byte is 0x5C absorbs the escaping backslash and leaves the following quote unescaped. The routine handles every pushed-down string constant, including ordinary WHERE-clause literals, so an authenticated user with only SELECT on a foreign table can break out of the 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 forces NO_BACKSLASH_ESCAPES into the session sql_mode and escapes string literals by doubling single quotes."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H",
                "version": "4.0"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T16:36:21.858Z",
            "orgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
            "shortName": "EDB"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://www.enterprisedb.com/docs/security/advisories/cve202662151/"
            },
            {
              "tags": [
                "release-notes",
                "patch"
              ],
              "url": "https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "mysql_fdw SQL injection through a multi-byte character set escaping bypass"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "20be33e2-bf35-4d13-8fad-18bd2f3e3659",
        "assignerShortName": "EDB",
        "cveId": "CVE-2026-62151",
        "datePublished": "2026-11-25T16:36:21.858Z",
        "dateReserved": "2026-07-13T13:34:19.851Z",
        "dateUpdated": "2026-11-25T17:20:35.713Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }