{"id":"CVE-2026-56738","published":"2026-09-24T16:35:02Z","modified":"2026-10-05T15:33:34Z","title":"phpMyFAQ has SQL Injection in `StopWords::add()` — Unescaped Stop Word Insertion","vendor":"thorsten","product":"phpMyFAQ","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00441,"percentile":0.3021,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rw77-vq4g-x3hp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thorsten/phpMyFAQ/commit/d56ef5d75c3c007de095bc4c13b470c7ac783f0f","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":6.04},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"thorsten","affectedVersions":[{"vendor":"thorsten","product":"phpMyFAQ","versions":["< 4.1.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-05T14:47:08.688016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpmyfaq/phpmyfaq","vulnerableRanges":["<4.1.6"],"patched":["4.1.6"],"from":["GHSA-rw77-vq4g-x3hp"],"provenance":"source"},{"ecosystem":"Packagist","package":"thorsten/phpmyfaq","vulnerableRanges":["<4.1.6"],"patched":["4.1.6"],"from":["GHSA-rw77-vq4g-x3hp"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection in the StopWords::add() method of the phpMyFAQ open source FAQ web application, which affects versions before 4.1.6: the user-supplied stop word is placed into an INSERT statement without database escaping, unlike the sibling StopWords::update() method. An authenticated administrator with access to the stop-word management feature can submit a crafted \"word\" value to inject arbitrary SQL, enabling actions such as dropping tables, exfiltrating data, or modifying other rows.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:47Z"},"euvd":{"id":"EUVD-2026-86289","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-48488","published":"2026-06-08","fixed":"4.1.4","kev":false},{"cve":"CVE-2026-49205","published":"2026-06-18","fixed":"4.1.4","kev":false,"link":{"from":"CVE-2026-49205","to":"CVE-2026-56738","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:thorsten/phpmyfaq","fromFixed":"4.1.4","toFixed":"4.1.6","daysApart":98},{"kind":"version-step","provenance":"source","package":"Packagist:phpmyfaq/phpmyfaq","fromFixed":"4.1.4","toFixed":"4.1.6","daysApart":98}]}},{"cve":"CVE-2026-56737","published":"2026-09-24","fixed":"4.1.6","kev":false},{"cve":"CVE-2026-56738","published":"2026-09-24","fixed":"4.1.6","kev":false},{"cve":"CVE-2026-47132","published":"2026-09-24","fixed":"4.2.0-alpha","kev":false},{"cve":"CVE-2026-56736","published":"2026-09-24","fixed":"4.2.0-alpha","kev":false}],"package":"Packagist:thorsten/phpmyfaq"}}