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

Critical 9.3 Published Updated

Unauthenticated attackers can extract sensitive database data via SQL injection in the captcha endpoint by crafting malicious User-Agent headers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-46364?

CVE-2026-46364 is a critical SQL injection vulnerability in thorsten phpmyfaq, published on 15 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-89

Which versions are affected by CVE-2026-46364?

4 open source packages ship an affected version, including thorsten/phpmyfaq and phpmyfaq/phpmyfaq.

PackageAffectedFixed in
thorsten/phpmyfaq PackagistAll versions4.1.2
thorsten/phpmyfaq PackagistAll versions4.1.2
phpmyfaq/phpmyfaq PackagistAll versions4.1.2
phpmyfaq/phpmyfaq PackagistAll versions4.1.2

How do I fix CVE-2026-46364?

Upgrade thorsten/phpmyfaq to 4.1.2 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-46364 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46364 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-289f-fq7w-6q2w.

Is CVE-2026-46364 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free