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-3494

CVE-2026-3494: MariaDB SQL Injection Vulnerability

CVE-2026-3494 is a SQL injection flaw in MariaDB server through version 11.8.5 that allows authenticated users to bypass audit logging. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2026-3494 Overview

CVE-2026-3494 is an audit logging bypass affecting MariaDB server versions through 11.8.5. When the server audit plugin is enabled and server_audit_events is configured with QUERY_DCL, QUERY_DDL, or QUERY_DML filtering, statements prefixed with double-hyphen (--) or hash (#) style SQL comments are not written to the audit log. An authenticated database user can suppress audit records by simply prepending a comment to any SQL statement. The flaw also affects downstream deployments including Amazon Aurora MySQL and Amazon Relational Database Service (RDS). The issue is tracked under CWE-778: Insufficient Logging.

Critical Impact

Authenticated users can evade audit logging for DCL, DDL, and DML statements, undermining forensic visibility and compliance controls.

Affected Products

  • MariaDB Server versions through 11.8.5
  • Amazon Aurora MySQL (including 3.11.0)
  • Amazon Relational Database Service (RDS) for MySQL and MariaDB

Discovery Timeline

  • 2026-03-03 - CVE-2026-3494 published to the National Vulnerability Database (NVD)
  • 2026-03-16 - Last updated in NVD database

Technical Details for CVE-2026-3494

Vulnerability Analysis

The MariaDB server audit plugin records SQL activity based on event categories selected through the server_audit_events variable. When operators configure category filters such as QUERY_DCL, QUERY_DDL, or QUERY_DML, the plugin classifies incoming statements before deciding whether to emit a log entry. The classification path does not normalize statements that begin with -- or # comment markers. As a result, the plugin fails to map these statements to the corresponding query category and silently skips logging.

An authenticated user with SELECT, INSERT, UPDATE, DELETE, or schema-modification privileges can suppress evidence of their actions by prepending a comment to each statement. The underlying query still executes normally because the SQL parser strips the leading comment before execution. Only the audit subsystem is affected.

Root Cause

The defect lies in how the audit plugin determines query type for filtering. The classifier inspects the leading tokens of the statement string but does not skip leading comment tokens. When -- or # appears at the start of the buffer, the classifier returns an unmatched category and the plugin discards the event. The fix, applied in commits to both the MariaDB server repository and the AWS audit plugin for MySQL, advances the parser past leading comments before category matching.

Attack Vector

Exploitation requires an authenticated database session over the network. No special privileges beyond standard query execution rights are needed. An attacker who has already obtained credentials, whether through phishing, credential stuffing, or insider access, can run unlogged DDL, DML, or DCL by prefixing every statement with -- or # . The vulnerability does not grant new privileges or data access. It removes the audit trail that defenders rely on for investigation and compliance reporting.

The vulnerability is described in prose only; no public proof-of-concept exploit code is referenced in the advisory. See the AWS Security Bulletin 2026-006 for vendor-confirmed technical details.

Detection Methods for CVE-2026-3494

Indicators of Compromise

  • Gaps between application-side query logs and MariaDB audit log entries for the same session identifier.
  • Sudden drops in audit event volume for users known to perform regular DDL or DML activity.
  • Database connections that issue statements starting with -- or # immediately after authentication.

Detection Strategies

  • Cross-reference audit plugin output with binary logs or general query logs, which capture statements regardless of leading comments.
  • Hunt for statements containing leading -- or # sequences in network packet captures or proxy logs in front of the database.
  • Alert on audit event categories returning empty results for users whose application traffic indicates active query workloads.

Monitoring Recommendations

  • Forward MariaDB binary logs and general query logs to a centralized analytics platform for correlation with audit plugin output.
  • Track the ratio of executed queries to logged audit events per user and alert on significant deviations.
  • Monitor for changes to server_audit_events and audit plugin configuration variables that could mask the issue further.

How to Mitigate CVE-2026-3494

Immediate Actions Required

  • Apply the fixed MariaDB build that includes commit 635559a2ad68a5a6d1a354e8209c58323dba0261 once released by your distribution.
  • For AWS-managed services, follow the guidance in AWS Security Bulletin 2026-006 to upgrade Aurora MySQL and RDS instances to patched engine versions.
  • Enable supplementary logging sources, such as the general query log or binary log, until patched versions are deployed.
  • Review audit records from the exposure window and corroborate them with application-tier logs.

Patch Information

Upstream fixes are available in the MariaDB server repository and the AWS audit plugin for MySQL. The relevant commits are 635559a2 for MariaDB and 01e25a5c for the AWS audit plugin. Patched engine versions are being rolled out through Amazon Aurora MySQL and Amazon RDS per the AWS bulletin.

Workarounds

  • Enable the general query log on sensitive instances to capture all executed statements, accepting the performance and storage trade-off.
  • Restrict database access to known application service accounts and remove interactive user privileges where possible.
  • Place a query proxy or firewall in front of the database to log and optionally reject statements that begin with -- or # comment markers.
bash
# Example: temporarily enable the general query log on MariaDB
# until a patched build is installed.
mysql -u root -p -e "SET GLOBAL general_log_file='/var/log/mysql/general.log'; SET GLOBAL general_log='ON';"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechMariadb

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-778

  • NVD-CWE-noinfo
  • Technical References
  • AWS Security Bulletin 2026-006

  • GitHub MariaDB Commit

  • GitHub AWS Audit Plugin Commit
  • Related CVEs
  • CVE-2026-35549: MariaDB Server DoS Vulnerability

  • CVE-2026-32710: MariaDB Server RCE Vulnerability

  • CVE-2021-47761: MilleGPG5 Privilege Escalation Flaw

  • CVE-2026-22027: CryptoLib Buffer Overflow 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