# CVE-2026-34973: phpMyFAQ has a LIKE Wildcard Injection in Search.php — Unescaped % and _ Metacharacters Enable Broad Content Disclosure

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T23:41:49.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-gcp9-5jc8-976x
- Weaknesses: CWE-943
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

phpMyFAQ is an open source FAQ web application. Prior to version 4.1.1, the searchCustomPages() method in phpmyfaq/src/phpMyFAQ/Search.php uses real_escape_string() (via escape()) to sanitize the search term before embedding it in LIKE clauses. However, real_escape_string() does not escape SQL LIKE metacharacters % (match any sequence) and _ (match any single character). An unauthenticated attacker can inject these wildcards into search queries, causing them to match unintended records — including content that was not meant to be surfaced — resulting in information disclosure. This issue has been patched in version 4.1.1.

(As written by CVE List.)

## Affected

- thorsten phpMyFAQ: < 4.1.1
- thorsten/phpmyfaq (Packagist): before 4.1.1
- phpmyfaq phpmyfaq: 4.1.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-gcp9-5jc8-976x> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34973> (advisory)
- <https://github.com/thorsten/phpMyFAQ> (package)

## Sources

- CVE List: [CVE-2026-34973](https://www.cve.org/CVERecord?id=CVE-2026-34973), CVE Terms of Use, modified 2026-04-03
- GitHub Advisory Database: [GHSA-gcp9-5jc8-976x](https://github.com/advisories/GHSA-gcp9-5jc8-976x), CC-BY-4.0, modified 2026-04-06
- NVD: [CVE-2026-34973](https://nvd.nist.gov/vuln/detail/CVE-2026-34973), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34973 · Whole record: https://cve.day/CVE-2026-34973.json · Rebuilt by cve.day 2026-11-25T22:59:17.799Z
