Summary
CVE-2026-109573 is an SQL injection vulnerability (CWE-89) in phpMyFAQ, reachable through the api/autocomplete search endpoint. It affects versions before 4.1.9 and is rated Critical (CVSS v4.0 score 9.2). Successful exploitation can lead to credential theft, data modification, or database destruction.
Technical details
- Root cause: The
PdoMysql::escape()function escapes single quotes with backslashes. When MySQL or MariaDB runs inNO_BACKSLASH_ESCAPESmode, those backslashes are treated literally, so the escaping does not neutralize the quote. - Trigger conditions: The database must run in
NO_BACKSLASH_ESCAPESmode. The attacker sends a Unicode right single quotation mark, which normalizes to an ASCII quote. - Attack vector: Network. The payload is sent to the api/autocomplete search endpoint. The CVE record lists no privileges required and no user interaction.
- Impact: Credential theft, data modification, or database destruction.
Affected software
- phpMyFAQ versions before 4.1.9
- phpMyFAQ 4.2.0-alpha releases, up to but not including 4.2.0-beta
Severity
- CVSS v4.0: 9.2 (Critical) –
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 8.1 (High) –
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade phpMyFAQ to 4.1.9 or later. For the 4.2.0 line, upgrade to 4.2.0-beta or later.
- The sources reviewed do not describe a workaround. Review the upstream advisory (GHSA-98p2-cg7p-h385) for further guidance. Prioritize internet-facing instances that use MySQL or MariaDB.

