CVE-2026-76212: phpMyFAQ before 4.1.7 LIKE Wildcard Injection via PostgreSQL

Published Aug 19, 2026
·
Updated

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 Software

1 affected component
PhpMyFaq phpmyfaq<4.1.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade phpMyFAQ to a version that resolves this vulnerability.

    Fixed in 4.1.7
  2. Configuration

    In Search/Database/Pgsql.php, correct the declared LIKE ESCAPE character (currently incorrectly set to '=') so it matches the escapeLikeWildcards() behavior that prefixes escaped LIKE wildcards with the '|' character.

    phpMyFAQ (Search/Database/Pgsql.php) LIKE ESCAPE character = '|' prefix for escaped wildcards (instead of '=' declared escape)

Event History

Aug 19, 2026
CVE Published
via MITRE·02:01 PM
Data Sourced
via MITRE·02:01 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only phpMyFAQ deployments before 4.1.7 that use PostgreSQL through the native pgsql PHP extension are affected. Deployments using the PDO PostgreSQL backend are not affected.

2

Does exploitation require an account or special interaction?

No. An unauthenticated attacker can submit % or _ wildcard characters through the public FAQ search form; no user interaction is required.

3

What is the practical impact of this issue?

Active LIKE wildcards can force broad matches and expensive sequential scans, causing denial of service. The issue does not permit quote-breaking SQL injection or data exfiltration because quotes remain escaped.

4

What can be done before upgrading?

The provided information identifies the public FAQ search form as the attack path. Restricting or disabling public access to that search capability can reduce exposure until phpMyFAQ is upgraded to 4.1.7 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203