CVE-2026-56738
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phpmyfaq/phpmyfaqPackagist | < 4.1.6 | 4.1.6 |
thorsten/phpmyfaqPackagist | < 4.1.6 | 4.1.6 |
Affected products
4- Range: <4.1.6
- ghsa-coords2 versions
< 4.1.6+ 1 more
- (no CPE)range: < 4.1.6
- (no CPE)range: < 4.1.6
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-rw77-vq4g-x3hpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-56738ghsaADVISORY
- github.com/thorsten/phpMyFAQ/commit/d56ef5d75c3c007de095bc4c13b470c7ac783f0fnvdWEB
- github.com/thorsten/phpMyFAQ/releases/tag/4.1.6ghsaWEB
- github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rw77-vq4g-x3hpnvdWEB
News mentions
0No linked articles in our index yet.