Skip to content
Heist/ feed
Back to feed
Medium

phpMyFAQ before 4.1.7 LIKE Wildcard Injection via PostgreSQL

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-76212
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:12 UTC · Revision 1

Source evidence

phpMyFAQ before 4.1.7 LIKE Wildcard Injection via PostgreSQL

core-osv · Original source

Published 19 Aug 2026, 14:01 UTC

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.

osv:CVE-2026-76212
Complete source record
{
  "id": "f408784a7bf8d886633f0a00135f180d2eb12431a2c7c35435ec81d598eb156b",
  "url": "https://osv.dev/vulnerability/CVE-2026-76212",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "phpMyFAQ before 4.1.7 LIKE Wildcard Injection via PostgreSQL",
    "summary": "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.",
    "evidence": "osv:CVE-2026-76212",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-76212",
      "aliases": [
        "CVE-2026-76212",
        "GHSA-5hx6-c293-588h"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/thorsten/phpmyfaq",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a429fb81a4efe1f7c0aeec5b7bf8a98a50509b85"
                },
                {
                  "fixed": "28d6f641c16e3015d51d0a01d14841b845251f35"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.2.0-alpha"
                      },
                      {
                        "fixed": "4.1.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.1.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76212.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.477051724Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76212.json",
        "https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5hx6-c293-588h",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-76212",
        "https://www.vulncheck.com/advisories/phpmyfaq-before-like-wildcard-injection-via-postgresql"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-88"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76212.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-76212",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492956,
  "published_at": "2026-08-19T14:01:58.591+00:00"
}