{"id":"CVE-2026-46364","published":"2026-05-15T18:36:42Z","modified":"2026-11-08T14:03:56Z","title":"phpMyFAQ - SQL Injection via User-Agent Header in BuiltinCaptcha","vendor":"thorsten","product":"phpmyfaq","tier":"tail","description":{"text":"phpMyFAQ before 4.1.2 contains an unauthenticated SQL injection vulnerability in BuiltinCaptcha::garbageCollector() and BuiltinCaptcha::saveCaptcha() methods that interpolate unsanitized User-Agent headers into DELETE and INSERT queries. Unauthenticated attackers can exploit the public GET /api/captcha endpoint by crafting malicious User-Agent headers to perform time-based blind SQL injection, extracting sensitive data including user credentials, admin tokens, and SMTP credentials from the database.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0212,"percentile":0.82522,"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-289f-fq7w-6q2w","tags":["vendor-advisory"]},{"url":"https://github.com/thorsten/phpMyFAQ/commit/b9f25109fddb38eee19987183798638d07943f92","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/phpmyfaq-sql-injection-via-user-agent-header-in-builtincaptcha","tags":["third-party-advisory"]}],"priority":{"score":28.4,"factors":[{"name":"EPSS percentile","points":16.5},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-46364","name":"phpMyFAQ <= 4.1.1 - SQL Injection","severity":"critical","path":"http/cves/2026/CVE-2026-46364.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-46364.yaml"}],"provenance":"source"},"vendorSlug":"thorsten","affectedVersions":[{"vendor":"thorsten","product":"phpmyfaq","versions":["< 4.1.2"]}],"fixedVersions":[{"vendor":"thorsten","product":"phpmyfaq","versions":["4.1.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-15T22:11:13.813389Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"thorsten/phpmyfaq","vulnerableRanges":["<4.1.2"],"patched":["4.1.2"],"from":["GHSA-289f-fq7w-6q2w"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpmyfaq/phpmyfaq","vulnerableRanges":["<4.1.2"],"patched":["4.1.2"],"from":["GHSA-289f-fq7w-6q2w"],"provenance":"source"}],"summary":{"text":"The SQL injection flaw in phpMyFAQ before 4.1.2 lives in the BuiltinCaptcha component, where the garbageCollector() and saveCaptcha() methods insert unsanitised User-Agent header values into DELETE and INSERT queries. An unauthenticated attacker with network access can send crafted User-Agent headers to the public GET /api/captcha endpoint, requiring no user interaction, to run time-based blind SQL injection and extract sensitive data such as user credentials, admin tokens and SMTP credentials from the database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:37:43Z"},"euvd":{"id":"EUVD-2026-30601","exploited":false,"provenance":"source"}}