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-2023-51765

CVE-2023-51765: Sendmail SMTP Smuggling Vulnerability

CVE-2023-51765 is an SMTP smuggling flaw in Sendmail that allows attackers to bypass SPF protection by injecting spoofed email messages. This article covers the technical details, affected versions, and mitigation steps.

Published: January 28, 2026

CVE-2023-51765 Overview

CVE-2023-51765 is an SMTP smuggling vulnerability affecting Sendmail versions through 8.17.2 that allows remote attackers to inject email messages with spoofed MAIL FROM addresses. This vulnerability enables attackers to bypass SPF (Sender Policy Framework) protection mechanisms by exploiting differences in how Sendmail and other email servers handle end-of-data sequences in SMTP communications.

The vulnerability arises because Sendmail supports the <LF>.<CR><LF> sequence as an end-of-data indicator, while many other popular email servers do not recognize this non-standard sequence. This inconsistency creates an opportunity for attackers to "smuggle" additional SMTP commands through intermediary mail servers, effectively injecting spoofed emails that appear to originate from trusted domains.

Critical Impact

Remote attackers can bypass SPF email authentication mechanisms to send spoofed emails that appear to originate from legitimate domains, potentially enabling phishing attacks, business email compromise, and reputation damage to affected organizations.

Affected Products

  • Sendmail through version 8.17.2
  • FreeBSD (all affected versions with bundled Sendmail)
  • Red Hat Enterprise Linux 8.0 and 9.0

Discovery Timeline

  • 2023-12-24 - CVE-2023-51765 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-51765

Vulnerability Analysis

This SMTP smuggling vulnerability exploits a protocol interpretation inconsistency in Sendmail's handling of the end-of-data sequence during SMTP transactions. According to RFC 5321, the standard end-of-data sequence is <CR><LF>.<CR><LF>, but Sendmail's implementation also accepts the non-standard <LF>.<CR><LF> sequence in certain configurations.

When Sendmail acts as an inbound mail server behind another mail transfer agent (MTA), attackers can craft specially formatted email messages that exploit this parsing difference. The upstream MTA may not recognize the non-standard sequence as an end-of-data marker, allowing the attacker to inject additional SMTP commands that Sendmail will process as a separate, legitimate email transaction.

This attack directly undermines SPF validation because the smuggled email inherits the authentication context of the legitimate connection, allowing attackers to send emails that pass SPF checks despite originating from unauthorized sources.

Root Cause

The root cause of CVE-2023-51765 lies in Sendmail's permissive parsing of SMTP end-of-data sequences. Specifically, Sendmail accepts <LF>.<CR><LF> (bare line feed followed by a period and CRLF) as a valid end-of-data indicator, deviating from the strict RFC 5321 specification that mandates only <CR><LF>.<CR><LF>.

This implementation decision was likely made for backward compatibility with non-conformant mail clients, but it creates a security gap when Sendmail operates in environments with other MTAs that strictly follow the RFC specification. The vulnerability is configuration-dependent and primarily affects deployments where Sendmail receives mail from other servers that do not sanitize non-standard line endings.

Attack Vector

The attack is conducted remotely over the network through standard SMTP communication (typically port 25). An attacker connects to an upstream mail server that forwards messages to a vulnerable Sendmail instance and sends a crafted email containing the <LF>.<CR><LF> sequence within the message body.

The upstream MTA interprets this as part of the message content and forwards it to Sendmail. However, Sendmail treats the sequence as an end-of-data marker, processing everything after it as new SMTP commands. This allows the attacker to inject a completely separate email with a spoofed sender address that bypasses SPF validation.

The attack requires no authentication and can be executed by any party capable of sending emails to the target mail infrastructure. The exploitation technique was publicly disclosed at the CCC Congress 2023 Event and detailed in the SEC Consult Blog Post on SMTP.

text
 
 			     SENDMAIL LICENSE
 
-The following license terms and conditions apply, unless a redistribution 
-agreement or other license is obtained from Sendmail, Inc., 6475 Christie 
-Ave, Third Floor, Emeryville, CA 94608, USA, or by electronic mail at 
-license@sendmail.com.
+The following license terms and conditions apply, unless a redistribution
+agreement or other license is obtained from Proofpoint, Inc., 892
+Ross Street, Sunnyvale, CA, 94089, USA, or by electronic mail at
+sendmail-license@proofpoint.com.
 
 License Terms:
 

Source: FreeBSD Source Code Commit

Detection Methods for CVE-2023-51765

Indicators of Compromise

  • Emails passing SPF checks but originating from unexpected or suspicious source IP addresses
  • SMTP logs showing unusual end-of-data sequences or multiple DATA commands within a single connection
  • Increased volume of emails with mismatched envelope sender (MAIL FROM) and header From addresses
  • Reports of phishing emails appearing to originate from your organization's legitimate domains

Detection Strategies

  • Implement SMTP transaction logging that captures raw protocol data including line ending sequences
  • Deploy email security gateways with SMTP smuggling detection capabilities that inspect for non-standard <LF>.<CR><LF> sequences
  • Configure DMARC with strict alignment policies and enable forensic reporting to detect spoofed emails
  • Monitor for SPF "pass" results on emails that fail other authentication checks or originate from suspicious sources

Monitoring Recommendations

  • Enable verbose SMTP logging on Sendmail servers to capture detailed transaction information
  • Configure alerts for emails with domain mismatches between envelope and header addresses
  • Monitor DMARC aggregate and forensic reports for signs of domain spoofing attacks
  • Track connection patterns for SMTP sessions with abnormal DATA command sequences

How to Mitigate CVE-2023-51765

Immediate Actions Required

  • Upgrade Sendmail to version 8.18 or later, which resolves this vulnerability with the o option in srv_features
  • Apply vendor-provided security patches for your operating system distribution (FreeBSD, RHEL, Debian, SUSE)
  • Review Sendmail configuration to ensure strict RFC compliance for end-of-data handling
  • Implement DMARC policies with p=reject to prevent spoofed emails from being delivered

Patch Information

The vulnerability is resolved in Sendmail version 8.18 and later releases. The fix introduces strict handling of end-of-data sequences when the o option is configured in srv_features. Organizations running older versions should upgrade or apply distribution-specific patches.

Vendor advisories and patches are available from:

  • SUSE Bugzilla #1218351
  • Red Hat CVE-2023-51765
  • Debian LTS Announcement
  • FreeBSD Source Code Commit

Workarounds

  • Configure upstream MTAs to normalize line endings and strip bare LF characters before forwarding to Sendmail
  • Deploy an email security gateway that sanitizes SMTP traffic for non-standard sequences
  • Implement strict DMARC policies (p=reject) to mitigate the impact of successful spoofing attempts
  • Consider placing Sendmail behind a compliant MTA that enforces RFC 5321 line ending requirements
bash
# Sendmail 8.18+ configuration to enable strict SMTP handling
# Add 'o' to srv_features in sendmail.mc to enforce strict end-of-data handling
define(`confSRV_FEATURES', `o')dnl

# Rebuild and restart Sendmail after configuration changes
m4 sendmail.mc > sendmail.cf
systemctl restart sendmail

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechSendmail

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.84%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-345
  • Technical References
  • Openwall OSS Security Update

  • Openwall OSS Security Update

  • Openwall OSS Security Discussion

  • Openwall OSS Security Update

  • Openwall OSS Security Update

  • Openwall OSS Security Discussion

  • Red Hat CVE-2023-51765

  • Red Hat Bugzilla #2255869

  • CCC Congress 2023 Event

  • Debian LTS Announcement

  • LWN Article Analysis

  • SEC Consult Blog Post on SMTP

  • Openwall OSS Security Update

  • Openwall OSS Security Update

  • YouTube Video on Security
  • Vendor Resources
  • SUSE Bugzilla #1218351

  • FreeBSD Source Code Commit
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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