# CVE-2026-46364: phpMyFAQ - SQL Injection via User-Agent Header in BuiltinCaptcha

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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): 1.71%, higher than 78% of CVEs (2026-12-01)
- Published: 2026-05-06T20:49:15.000Z
- Modified: 2026-11-08T14:03:56.193Z
- Also known as: GHSA-289f-fq7w-6q2w
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- thorsten phpmyfaq: before 4.1.2 (not affected: 4.1.2)
- thorsten/phpmyfaq (Packagist): before 4.1.2
- phpmyfaq/phpmyfaq (Packagist): before 4.1.2

## Every score

- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- VulnCheck: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-289f-fq7w-6q2w> (vendor-advisory, web)
- <https://github.com/thorsten/phpMyFAQ/commit/b9f25109fddb38eee19987183798638d07943f92> (patch, web)
- <https://www.vulncheck.com/advisories/phpmyfaq-sql-injection-via-user-agent-header-in-builtincaptcha> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46364> (advisory)
- <https://github.com/thorsten/phpMyFAQ> (package)

## Sources

- CVE List: [CVE-2026-46364](https://www.cve.org/CVERecord?id=CVE-2026-46364), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-289f-fq7w-6q2w](https://github.com/advisories/GHSA-289f-fq7w-6q2w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-46364](https://nvd.nist.gov/vuln/detail/CVE-2026-46364), Public domain, modified 2026-10-26

---

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