6.9medium
phpMyFAQ before 4.1.7 LIKE Wildcard Injection via PostgreSQL
- Severity
- 6.9medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.43% (higher than 29% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
phpMyFAQ before 4.1.7, when configured to use PostgreSQL via the native pgsql PHP extension, declares an incorrect LIKE ESCAPE character ('=') in the Search/Database/Pgsql.php backend while escapeLikeWildcards() escapes user input with the '|' prefix. As a result, wildcard escaping is a no-op and user-supplied % and _ characters remain active LIKE wildcards. An unauthenticated attacker can submit such characters in the public FAQ search form to force maximally broad pattern matches and expensive sequential scans, resulting in a denial of service. The PDO PostgreSQL backend is not affected, and quotes remain escaped so this does not enable quote-breaking SQL injection or data exfiltration.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| thorsten phpMyFAQ | from 4.2.0-alpha before 4.1.7 Not affected: 4.1.7 | CVE List |
| phpmyfaq phpmyfaq | before 4.1.7 | NVD |
All scores
| VulnCheck | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| VulnCheck | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
References
| https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5hx6-c293-588h | exploit, mitigation, vendor-advisory | |
| https://www.vulncheck.com/advisories/phpmyfaq-before-like-wildcard-injection-via-postgresql | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-76212 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-76212 changed 2026-09-01 | Public domain |