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.
Published: 2026-08-19
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw occurs when phpMyFAQ uses the native pgsql PHP extension with a wrongly specified LIKE escape character, causing user input escaped with '|', but the ESCAPE character is '='. This makes wildcard escaping ineffective, letting % and _ remain as active SQL LIKE wildcards. An attacker can inject these characters into the public FAQ search form, forcing the database to perform broad pattern matches and expensive sequential scans. The result is a denial‑of‑service condition. The backend correctly escapes quotes, so the bug does not lead to SQL injection or data exfiltration.

Affected Systems

The issue affects all installations of phpMyFAQ earlier than version 4.1.7 when the application is configured to use PostgreSQL through the native pgsql PHP extension. The PDO PostgreSQL backend is not impacted.

Risk and Exploitability

The CVSS score of 6.9 indicates high severity for potential downtime. The EPSS score of < 1% reflects a very low current exploitation probability, yet the lack of authentication requirements allows any user to trigger the DoS. The vulnerability is not listed in the CISA KEV catalog, so there is no evidence of active exploitation. The likely attack vector involves submitting '%' and '_' characters via the public FAQ search form, a straightforward path that requires no special privileges or network access.

Generated by OpenCVE AI on August 20, 2026 at 16:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade phpMyFAQ to version 4.1.7 or newer.
  • If an upgrade is not possible, disable the native pgsql PHP extension or switch to the PDO PostgreSQL backend, which is not affected.
  • As a temporary measure, sanitize the search input by removing '%' and '_' characters or disable the public search functionality during high load periods.

Generated by OpenCVE AI on August 20, 2026 at 16:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq

Wed, 19 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title phpMyFAQ before 4.1.7 LIKE Wildcard Injection via PostgreSQL
First Time appeared Phpmyfaq
Phpmyfaq phpmyfaq
Weaknesses CWE-88
CPEs cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*
Vendors & Products Phpmyfaq
Phpmyfaq phpmyfaq
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Subscriptions

Phpmyfaq Phpmyfaq
Thorsten Phpmyfaq
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T01:55:21.857Z

Reserved: 2026-08-19T11:34:28.577Z

Link: CVE-2026-76212

cve-icon Vulnrichment

Updated: 2026-08-25T01:55:16.924Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-19T14:17:46.807

Modified: 2026-09-01T15:20:29.367

Link: CVE-2026-76212

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T16:45:16Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')