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

CVE-2026-27851: Safe Filter Bypass SQLi Vulnerability

CVE-2026-27851 is a SQL injection flaw caused by improper safe filter handling with variable expansion, allowing unsafe data to bypass escaping. This article covers technical details, attack vectors, and mitigation strategies.

Published: May 17, 2026

CVE-2026-27851 Overview

CVE-2026-27851 affects template processing logic where the safe filter, when combined with variable expansion, incorrectly propagates its trust marker to all subsequent pipeline stages on the same string. Downstream filters treat untrusted input as pre-sanitized, bypassing automatic escaping. The flaw is referenced in an Open-Xchange Dovecot security advisory and is classified under [CWE-235] (Improper Handling of Extra Parameters). Attackers can exploit this behavior to inject unescaped data into authentication queries, enabling SQL injection and LDAP injection where the affected templating is used for credential lookups. No public exploit code is currently available.

Critical Impact

Untrusted input flows unescaped into authentication queries, allowing SQL and LDAP injection against backend identity stores.

Affected Products

  • Open-Xchange Dovecot (see vendor advisory for affected version ranges)
  • Deployments using safe filter with variable expansion in authentication templates
  • Configurations where filter pipelines process user-supplied authentication data

Discovery Timeline

  • 2026-05-12 - CVE-2026-27851 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-27851

Vulnerability Analysis

The vulnerability resides in the filter pipeline evaluator that processes templated strings. When the safe filter marks a value as trusted, the marker is intended to apply only to that filter's output. The implementation instead persists the safe state across the entire pipeline. Subsequent filters that operate on the same string inherit this marker and skip required escaping.

This flaw is exploitable when the templating engine constructs authentication queries from user-controlled input. An attacker supplying a crafted username or identifier can inject SQL fragments or LDAP search filter syntax that would normally be neutralized by automatic escaping. The result is authentication bypass or unauthorized data disclosure from identity backends.

Exploitation requires the vulnerable template configuration to include a safe filter applied to a variable that also passes through escaping filters. The attack complexity is elevated because the attacker must reach a code path where this pipeline pattern is used.

Root Cause

The trust marker assigned by the safe filter is not scoped to a single pipeline stage. The evaluator carries the safe flag forward, causing later escaping filters to short-circuit. Input that should have been escaped for SQL or LDAP contexts is passed through verbatim.

Attack Vector

The attack vector is network-based and requires no authentication. An attacker submits crafted input to an authentication endpoint that uses a vulnerable filter pipeline. The unescaped payload reaches the backend SQL database or LDAP directory, where injected syntax executes within the authentication query context. See the Open-Xchange Security Advisory for technical details.

Detection Methods for CVE-2026-27851

Indicators of Compromise

  • Authentication logs containing SQL metacharacters such as single quotes, comment sequences, or UNION keywords in username fields
  • LDAP query logs showing unexpected filter syntax including parentheses, asterisks, or boolean operators in user-supplied identifiers
  • Repeated failed authentication attempts followed by anomalous successful logins from the same source
  • Backend database or directory errors triggered by malformed authentication queries

Detection Strategies

  • Audit template configurations for use of the safe filter in pipelines that also include escaping or query-construction filters
  • Inspect authentication request payloads for injection patterns at the proxy or web application firewall layer
  • Correlate authentication failures with backend SQL or LDAP error messages to identify probe activity

Monitoring Recommendations

  • Enable verbose authentication logging on the Dovecot service and forward events to a centralized SIEM
  • Alert on authentication attempts containing characters atypical for valid usernames in your environment
  • Monitor LDAP and SQL backends for query syntax anomalies originating from the authentication service

How to Mitigate CVE-2026-27851

Immediate Actions Required

  • Identify all template configurations that apply the safe filter to variable-expanded input used in authentication flows
  • Remove the safe filter from authentication-related templates until patched versions are deployed
  • Apply vendor-supplied updates as published in the Open-Xchange advisory once available for your version

Patch Information

Refer to the Open-Xchange Security Advisory for the fixed version and upgrade instructions. The vendor recommends avoiding the safe filter until upgrading to the corrected release.

Workarounds

  • Replace safe filter usage with explicit per-context escaping filters in authentication templates
  • Restrict the character set accepted in authentication identifiers at the application boundary
  • Enforce parameterized queries and LDAP API escaping in any custom authentication backends
bash
# Audit Dovecot configuration for vulnerable pipeline patterns
grep -rn "safe" /etc/dovecot/ | grep -E "%\{.*\|.*safe"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechN/A

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-235
  • Technical References
  • Open-Xchange Security Advisory
  • Latest CVEs
  • CVE-2026-46333: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-2586: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-2587: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-45255: FreeBSD bsdinstall/bsdconfig RCE Flaw
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