CVE-2026-62151
published medium CVSS 4.0 · 5.8mysql_fdw SQL injection through a multi-byte character set escaping bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EnterpriseDB | — | MySQL Foreign Data Wrapper (mysql_fdw)0 to < 2.10.0 · Other versions: unaffected | Affected | Not stated | EDB |
| Alpine Linux | edge | postgresql-mysql_fdw | Fixed | 2.10.0-r0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- EDB · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| EnterpriseDB | MySQL Foreign Data Wrapper (mysql_fdw) | 0 to < 2.10.0 (affected · custom)Default: unaffected | EDB · cna |
Weaknesses
1- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
2Provider assertions
2EDB · cna
mysql_fdw SQL injection through a multi-byte character set escaping bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a74d3688d5eebbedea60ff55467a0245386667d16f716473322f17a282a80f50
- Ingested
- 25 Nov 2026, 17:29:39 UTC
- Source record
- Official CVE record