mysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware.
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.
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- EnterpriseDB
- Product
- MySQL Foreign Data Wrapper (mysql_fdw)
- CVSS v4.0
- 5.8 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Fix
- available
- Weakness
- CWE-89
- Exposure class
- Database
- NVD status
- Received
Why it ranks 34 (Notable)
- CVSS v4.0 5.8 medium
- Product class: database
- Widely deployed vendor product (EnterpriseDB)
- Fix available
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.
Links
- NIST National Vulnerability Database (CVE API 2.0) (nvd.nist.gov)
- CVE-2026-62151 on this site · NVD · CVE.org · Vulnpedia