The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-46364

CVE-2026-46364: phpMyFAQ SQL Injection Vulnerability

CVE-2026-46364 is an unauthenticated SQL injection flaw in phpMyFAQ versions before 4.1.2 that allows attackers to extract sensitive data via malicious User-Agent headers. This article covers technical details, exploitation methods, and patches.

Published: May 21, 2026

CVE-2026-46364 Overview

CVE-2026-46364 is an unauthenticated SQL injection vulnerability in phpMyFAQ versions prior to 4.1.2. The flaw resides in the BuiltinCaptcha::garbageCollector() and BuiltinCaptcha::saveCaptcha() methods, which interpolate unsanitized HTTP User-Agent header values directly into DELETE and INSERT SQL statements. Attackers can reach the vulnerable code path through the public GET /api/captcha endpoint without authentication. Successful exploitation enables time-based blind SQL injection, allowing extraction of user credentials, administrator tokens, and SMTP credentials stored in the database. The issue is tracked under CWE-89.

Critical Impact

Unauthenticated remote attackers can extract sensitive database contents, including admin tokens and credentials, by sending crafted User-Agent headers to a public captcha endpoint.

Affected Products

  • phpMyFAQ versions prior to 4.1.2
  • BuiltinCaptcha::garbageCollector() method
  • BuiltinCaptcha::saveCaptcha() method

Discovery Timeline

  • 2026-05-15 - CVE-2026-46364 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-46364

Vulnerability Analysis

The vulnerability stems from improper neutralization of special elements in SQL commands. phpMyFAQ's built-in CAPTCHA component records and prunes captcha entries using the client's User-Agent string as part of DELETE and INSERT queries. The header value is concatenated into the SQL statement without parameterization or escaping.

The GET /api/captcha endpoint is publicly accessible and invokes both the garbage collector and the save routine on each request. Any HTTP client can therefore trigger the injection path, making the bug reachable without prior authentication, session state, or user interaction.

Because the affected queries do not return data to the response body, attackers rely on time-based blind techniques such as SLEEP() or pg_sleep() payloads. Boolean-based or out-of-band variants are also viable depending on the underlying database driver. Extracted artifacts include hashed user passwords, admin API tokens, and configured SMTP credentials, which can be reused to pivot into mail infrastructure or administrative panels.

Root Cause

The root cause is direct string interpolation of attacker-controlled HTTP header data into SQL statements within BuiltinCaptcha::garbageCollector() and BuiltinCaptcha::saveCaptcha(). Neither prepared statements nor input sanitization were applied to the User-Agent value before it reached the database layer.

Attack Vector

The attack vector is network-based and requires no privileges. An attacker sends an HTTP GET request to /api/captcha with a malicious User-Agent header containing SQL syntax. The phpMyFAQ backend processes the header inside captcha lifecycle queries, executing the injected SQL against the configured database. Exploitation can be performed with any HTTP client capable of setting custom headers. Detailed analysis is available in the VulnCheck SQL Injection Advisory and the upstream GitHub Security Advisory.

No verified public proof-of-concept code was included in the enriched dataset, so synthetic exploit code is omitted. Refer to the linked advisories for technical specifics.

Detection Methods for CVE-2026-46364

Indicators of Compromise

  • HTTP requests to /api/captcha containing SQL keywords such as SLEEP, BENCHMARK, pg_sleep, UNION, or SELECT inside the User-Agent header.
  • Anomalously long response times on /api/captcha requests, indicative of time-based blind injection.
  • Repeated /api/captcha requests from a single source with progressively varying User-Agent strings, consistent with character-by-character data extraction.
  • Database query logs showing INSERT or DELETE operations against the captcha table with non-printable or oversized User-Agent values.

Detection Strategies

  • Inspect web server access logs for User-Agent headers that exceed expected length or contain SQL syntax tokens.
  • Enable database query logging for the captcha tables and alert on statements where the user-agent column contains SQL metacharacters such as quotes, semicolons, or parentheses.
  • Deploy a Web Application Firewall (WAF) signature that flags SQL injection patterns within the User-Agent header on requests to /api/captcha.

Monitoring Recommendations

  • Baseline normal /api/captcha response latency and alert on outliers consistent with SLEEP-based payloads.
  • Correlate spikes in /api/captcha traffic with subsequent administrative logins or SMTP authentication events to detect credential reuse.
  • Forward web server and database logs to a centralized analytics platform for retroactive hunting against the User-Agent injection pattern.

How to Mitigate CVE-2026-46364

Immediate Actions Required

  • Upgrade phpMyFAQ to version 4.1.2 or later as published in the GitHub Security Advisory GHSA-289f-fq7w-6q2w.
  • Rotate all credentials stored in the phpMyFAQ database, including administrator passwords, API tokens, and SMTP credentials, assuming exposure until logs confirm otherwise.
  • Review web server and database logs for evidence of prior exploitation against /api/captcha.

Patch Information

The maintainers addressed the issue in phpMyFAQ 4.1.2. Refer to the upstream GitHub commit and the GitHub Security Advisory for the full set of changes. The fix replaces unsafe string interpolation in BuiltinCaptcha with parameterized queries.

Workarounds

  • Restrict access to /api/captcha at the reverse proxy or WAF layer until patching is complete.
  • Apply a WAF rule that rejects requests where the User-Agent header contains SQL metacharacters or exceeds a strict length limit.
  • Temporarily disable the built-in CAPTCHA module if business processes permit, removing the vulnerable code path from request handling.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechPhpmyfaq

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory

  • VulnCheck SQL Injection Advisory
  • Related CVEs
  • CVE-2026-46359: phpMyFAQ SQL Injection Vulnerability

  • CVE-2026-46362: phpMyFAQ Authorization Bypass Vulnerability

  • CVE-2026-46365: phpMyFAQ Auth Bypass Vulnerability

  • CVE-2026-45010: phpMyFAQ Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English