← Back to search

CVE-2026-109573

8.1 HIGHpublic exploit available

Published 2026-10-12 · Updated 2026-10-13

AI risk analysis

Summary
In phpMyFAQ before 4.1.9, the PdoMysql::escape() method incorrectly escapes single quotes using backslashes, which are treated literally in MySQL/MariaDB when NO_BACKSLASH_ESCAPES mode is enabled. An unauthenticated attacker can exploit this via the api/autocomplete endpoint by sending a Unicode right single quotation mark (U+2019) in the search parameter, which gets normalized to an ASCII quote and bypasses escaping, leading to SQL injection.
Exploitability
Exploitation requires the target database to be configured with NO_BACKSLASH_ESCAPES mode enabled, and the attacker must send a Unicode right single quotation mark (U+2019) in the search parameter of the public api/autocomplete endpoint; no authentication or prior access is needed.
Blast radius
Successful exploitation allows unauthenticated attackers to read sensitive credentials and configuration secrets, modify database records, or drop tables, potentially compromising full system confidentiality, integrity, and availability.
Detection
Look for HTTP requests to /api/autocomplete containing Unicode right single quotation mark (U+2019) in the search parameter, especially when followed by SQL-like syntax in logs; also monitor for unusual query patterns or failed queries in database logs coinciding with such requests.
Prioritized remediation
Upgrade to phpMyFAQ version 4.1.9 or later, where the vulnerability in PdoMysql::escape() has been fixed.
sql-injectionwebunauthenticatedunicode-spoof

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

phpMyFAQ before 4.1.9 contains an SQL injection vulnerability in PdoMysql::escape(), which escapes single quotes with backslashes that are treated literally when MySQL or MariaDB runs in NO_BACKSLASH_ESCAPES mode. Unauthenticated attackers can send a Unicode right single quotation mark in the search parameter of api/autocomplete, which is normalized to an ASCII quote, to read credentials and configuration secrets, modify records, or drop tables.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-89

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.