Alpine: postgresql-mysql_fdw: security update to 2.10.0-r0

high Tenable Self-Hosted Container Security Plugin ID 499280

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- 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. (CVE-2026-62151)

- 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. (CVE-2026-62152)

- 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. (CVE-2026-62153)

- 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. (CVE-2026-62154)

Solution

Update the postgresql-mysql_fdw library and its related packages to version 2.10.0-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-62151

https://security.alpinelinux.org/vuln/CVE-2026-62152

https://security.alpinelinux.org/vuln/CVE-2026-62153

https://security.alpinelinux.org/vuln/CVE-2026-62154

Plugin Details

Severity: High

ID: 499280

Version: Revision 1.2

Type: Local

Published: 12/4/2026

Updated: 12/4/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 96.21

CVSS v2

Risk Factor: Medium

Base Score: 4

Temporal Score: 3

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:N/A:N

CVSS Score Source: CVE-2026-62152

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 7.5

Threat Score: 4.8

Threat Vector: CVSS:4.0/E:U

Vector: 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

CVSS Score Source: CVE-2026-62154

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 11/25/2026

Reference Information

CVE: CVE-2026-62151, CVE-2026-62152, CVE-2026-62153, CVE-2026-62154