CVE-2026-56738
HIGH 8.5CVSS 4.0phpMyFAQ has SQL Injection in `StopWords::add()` — Unescaped Stop Word Insertion
phpMyFAQ is an open source FAQ web application. The StopWords::add() method inversions prior to 4.1.6 builds a SQL INSERT statement using sprintf() and inserts the user-supplied stop word value directly into the query string without calling the application's database escaping function on it. A sibling method, StopWords::update(), which modifies an existing stop word, correctly escapes the same kind of input. The omission is isolated to the add() (insert) code path. An authenticated administrator who can reach the stop-word management feature can submit a crafted value as the "word" parameter that breaks out of the SQL string literal and injects arbitrary SQL, including statements to drop tables, exfiltrate data, or modify other rows in the database. Version 4.1.6 fixes the issue.
- Published
- 24 Sep 2026
- Last modified
- 5 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-rw77-vq4g-x3hp
- Sources
- NVDJSONOSV GHSA-rw77-vq4g-x3hpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.5 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | phpmyfaq/phpmyfaq | < 4.1.6 | 4.1.6 |
| OSV | Packagist | thorsten/phpmyfaq | < 4.1.6 | 4.1.6 |
References
- https://github.com/thorsten/phpMyFAQ/commit/d56ef5d75c3c007de095bc4c13b470c7ac783f0f · WEB
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rw77-vq4g-x3hp · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-56738 · ADVISORY
- https://github.com/thorsten/phpMyFAQ · PACKAGE
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.6 · WEB
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 24 Sep 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 24 Sep 2026)