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
    • 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 Audit Logging Bypass Vulnerability

CVE-2026-3494 is an audit logging bypass flaw in MariaDB Server that allows authenticated users to evade audit logging by using comment-prefixed SQL statements. This article covers technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2026-3494 Overview

A logging bypass vulnerability exists in MariaDB server version through 11.8.5 when the server audit plugin is enabled with specific query filtering configurations. When server_audit_events is configured with QUERY_DCL, QUERY_DDL, or QUERY_DML filtering, an authenticated database user can evade audit logging by prefixing SQL statements with double-hyphen (--) or hash (#) style comments. This allows malicious or unauthorized database operations to be executed without leaving a trace in the audit logs.

Critical Impact

Authenticated users can bypass audit logging mechanisms, enabling undetected execution of sensitive SQL operations including data manipulation, schema changes, and privilege modifications.

Affected Products

  • MariaDB Server through version 11.8.5
  • Deployments with server audit plugin enabled
  • Configurations using QUERY_DCL, QUERY_DDL, or QUERY_DML event filtering

Discovery Timeline

  • 2026-03-03 - CVE-2026-3494 published to NVD
  • 2026-03-03 - Last updated in NVD database

Technical Details for CVE-2026-3494

Vulnerability Analysis

This vulnerability falls under CWE-778 (Insufficient Logging), where security-critical operations fail to be properly recorded in audit logs. The MariaDB server audit plugin is designed to capture and log database queries based on configured event types. However, the parsing logic fails to properly handle SQL statements that begin with comment syntax.

When an authenticated user prepends a SQL statement with either the double-hyphen (--) or hash (#) comment markers, the audit plugin's event classification mechanism incorrectly interprets or skips processing of the statement. As a result, the actual query executes normally against the database, but the audit trail is not updated. This creates a significant blind spot for security monitoring and compliance requirements.

The vulnerability requires network access and valid database authentication credentials, making it exploitable by any authenticated database user. Organizations relying on MariaDB's audit plugin for compliance logging, forensic analysis, or intrusion detection face substantial risk as malicious insiders or compromised accounts can perform data exfiltration, privilege escalation, or destructive operations without detection.

Root Cause

The root cause lies in the server audit plugin's query parsing and classification logic. When evaluating whether a statement matches the configured QUERY_DCL, QUERY_DDL, or QUERY_DML event filters, the plugin fails to strip or properly handle leading comment syntax before classifying the statement type. The comment prefix causes the classification to fail or return an incorrect result, resulting in the query bypassing the audit log write operation entirely.

Attack Vector

The attack is network-accessible and requires low privilege (valid database authentication). An attacker with legitimate database credentials can craft SQL statements with comment prefixes to evade audit logging while still executing the intended database operations.

For example, an attacker attempting to exfiltrate data or modify records could prefix their malicious queries with -- or # characters. The MariaDB query parser correctly ignores these comments and executes the following SQL, but the audit plugin fails to capture the event due to its flawed classification logic.

The attack is particularly dangerous in environments where audit logs serve as the primary detection mechanism for unauthorized database activity. Database administrators and security teams would have no visibility into the malicious operations being performed.

Detection Methods for CVE-2026-3494

Indicators of Compromise

  • Discrepancies between application-level query logs and MariaDB audit logs
  • Evidence of comment-prefixed queries in network traffic or application logs that do not appear in server_audit.log
  • Unusual patterns of SQL statements beginning with -- or # from specific user accounts
  • Data modifications or schema changes with no corresponding audit entries

Detection Strategies

  • Enable general query logging (general_log) temporarily to compare against audit plugin output for gaps
  • Implement network-level SQL traffic inspection to capture all database queries independently
  • Deploy database activity monitoring (DAM) solutions that parse SQL at the network layer
  • Correlate application-layer database logging with MariaDB audit logs to identify missing entries

Monitoring Recommendations

  • Configure SentinelOne Singularity Platform to monitor MariaDB processes and network connections for anomalous query patterns
  • Set up alerts for authenticated users executing high volumes of comment-prefixed SQL statements
  • Implement log integrity monitoring to detect tampering or gaps in audit trail
  • Review audit plugin configuration and ensure comprehensive logging beyond just DCL/DDL/DML event types

How to Mitigate CVE-2026-3494

Immediate Actions Required

  • Review MariaDB server audit plugin configuration and assess exposure
  • Implement compensating controls such as network-level query logging
  • Audit recent database activity for potential abuse during the exposure window
  • Restrict database access to essential personnel and applications until patches are applied

Patch Information

MariaDB users should monitor the AWS Security Bulletin 2026-006 for updated patch information and vendor guidance. Apply the latest MariaDB server updates that address this audit logging bypass as soon as they become available. Organizations using managed database services should verify with their cloud provider that patches have been applied.

Workarounds

  • Configure the audit plugin to log all query events (QUERY_ALL) instead of selective filtering as a temporary measure
  • Enable MariaDB's general query log as a supplementary logging mechanism
  • Deploy network-based database activity monitoring to capture all SQL traffic
  • Implement application-level query logging to maintain an independent audit trail
bash
# Configuration example - Enable comprehensive audit logging
# Edit MariaDB configuration file (my.cnf or my.ini)

[mariadb]
# Enable general query log as supplementary logging
general_log = 1
general_log_file = /var/log/mysql/general.log

# Configure audit plugin for all queries (workaround)
server_audit_events = CONNECT,QUERY
server_audit_logging = ON
server_audit_output_type = FILE

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechMariadb

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • 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
  • Technical References
  • AWS Security Bulletin 2026-006
  • Related CVEs
  • CVE-2026-32710: MariaDB Server RCE Vulnerability

  • CVE-2021-47761: MilleGPG5 Privilege Escalation Flaw

  • CVE-2026-22027: CryptoLib Buffer Overflow Vulnerability

  • CVE-2022-47015: MariaDB Server DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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