A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-59419

CVE-2025-59419: Netty SMTP Codec RCE Vulnerability

CVE-2025-59419 is an SMTP command injection vulnerability in Netty's codec that allows attackers to forge arbitrary emails from trusted servers. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-59419 Overview

CVE-2025-59419 is an SMTP command injection vulnerability in Netty, an asynchronous, event-driven network application framework widely used in Java applications. The flaw resides in the SMTP codec component, specifically io.netty.handler.codec.smtp.DefaultSmtpRequest, where user-supplied parameters are concatenated into SMTP command strings without validation. Attackers who control SMTP parameters such as email recipients can inject Carriage Return (\r) and Line Feed (\n) sequences to issue arbitrary SMTP commands. Because injected commands originate from the trusted server's IP, forged emails pass SPF and DKIM authentication checks. The issue affects versions prior to 4.1.128.Final and 4.2.7.Final and is classified under [CWE-93] (Improper Neutralization of CRLF Sequences).

Critical Impact

Remote attackers can forge authenticated emails from trusted servers, enabling executive impersonation and fraudulent corporate communications that bypass SPF and DKIM checks.

Affected Products

  • Netty versions prior to 4.1.128.Final
  • Netty versions prior to 4.2.7.Final
  • Java applications using io.netty.handler.codec.smtp for SMTP client functionality

Discovery Timeline

  • 2025-10-15 - CVE-2025-59419 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-59419

Vulnerability Analysis

The vulnerability resides in Netty's SMTP codec, which constructs outbound SMTP commands by concatenating caller-supplied parameters directly into the protocol stream. The DefaultSmtpRequest constructor accepts parameters as CharSequence values and stores them without inspecting their contents. Helper methods such as SmtpRequests.rcpt(recipient) forward attacker-controlled input straight to the codec.

When serialized, the codec terminates each command with CRLF (\r\n). If a parameter already contains CRLF, the codec emits multiple commands in a single request. Attackers exploit this confusion to append commands such as MAIL FROM, RCPT TO, and DATA after a legitimate command, producing fully crafted messages on the wire.

Because the SMTP session is already authenticated and originates from the trusted server's IP address, downstream relays accept the forged messages. Receiving mail servers evaluate SPF and DKIM against the legitimate sending infrastructure, so the spoofed messages pass authentication.

Root Cause

The root cause is missing neutralization of CRLF characters in SMTP parameters. The pre-patch DefaultSmtpRequest constructor stored parameters without calling any validator, allowing protocol metacharacters to flow into the wire format.

Attack Vector

Exploitation requires an application that passes externally controlled input (for example, an email recipient field from a web form) into Netty's SMTP request helpers. The attacker submits a recipient string containing CRLF followed by additional SMTP verbs, which the codec then transmits over the authenticated session.

java
// Security patch in DefaultSmtpRequest.java
public DefaultSmtpRequest(SmtpCommand command, CharSequence... parameters) {
    this.command = ObjectUtil.checkNotNull(command, "command");
    SmtpUtils.validateSMTPParameters(parameters);
    this.parameters = SmtpUtils.toUnmodifiableList(parameters);
}

// New validator in SmtpUtils.java
/**
 * Validates SMTP parameters to prevent SMTP command injection.
 * Throws IllegalArgumentException if any parameter contains CRLF sequences.
 */
static void validateSMTPParameters(CharSequence... parameters) {
    if (parameters != null) {
        for (CharSequence parameter : parameters) {
            if (parameter != null) {
                validateSMTPParameter(parameter);
            }
        }
    }
}

Source: Netty Security Patch Commit

Detection Methods for CVE-2025-59419

Indicators of Compromise

  • Outbound SMTP traffic from application servers containing multiple MAIL FROM or RCPT TO verbs within a single client request.
  • Application logs showing recipient or sender fields containing raw \r or \n characters.
  • Unexpected DATA payloads in SMTP sessions originating from Netty-based services that authenticate against corporate relays.

Detection Strategies

  • Inspect dependency manifests (pom.xml, build.gradle) across Java projects for Netty versions below 4.1.128.Final or 4.2.7.Final.
  • Add runtime input validation to reject CRLF in user-supplied SMTP parameters even when callers do not yet validate input.
  • Correlate egress SMTP logs with web application request logs to flag recipient fields containing encoded CRLF (%0d%0a).

Monitoring Recommendations

  • Monitor mail relay logs for messages from internal services where the envelope sender differs from the application's expected identity.
  • Alert on Software Composition Analysis (SCA) findings tagged with GHSA-jq43-27x9-3v86.
  • Track outbound SMTP command rates per session, since injection often produces an abnormal number of commands per logical email.

How to Mitigate CVE-2025-59419

Immediate Actions Required

  • Upgrade Netty to 4.1.129.Final or 4.2.8.Final, which include SmtpUtils.validateSMTPParameters invocation in the request constructor.
  • Audit application code that calls SmtpRequests.rcpt, SmtpRequests.mail, or constructs DefaultSmtpRequest directly with user-influenced input.
  • Add server-side validation that strips or rejects CRLF in email recipient, sender, and subject fields before passing to Netty.

Patch Information

The Netty project published the fix in the GitHub Security Advisory GHSA-jq43-27x9-3v86 and the corresponding Netty patch commit. The patch adds validateSMTPParameters calls in DefaultSmtpRequest to throw IllegalArgumentException when CRLF sequences are present.

Workarounds

  • No vendor-supplied workaround exists. Upgrading to a patched version is required.
  • As a compensating control, applications can wrap calls to SmtpRequests with a pre-validation layer that rejects any parameter containing \r or \n.
  • Restrict the set of email recipients to a server-side allowlist where feasible to limit attacker control over SMTP parameters.
bash
# Maven dependency upgrade example
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-smtp -DdepVersion=4.1.129.Final -DforceVersion=true

# Gradle dependency override example
# In build.gradle:
# implementation('io.netty:netty-codec-smtp:4.1.129.Final')

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNetty

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.24%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/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-93
  • Technical References
  • GitHub Commit Reference

  • GitHub Security Advisory

  • DepthFirst Blog Analysis
  • Related CVEs
  • CVE-2026-42586: Netty Redis Codec RCE Vulnerability

  • CVE-2026-42582: Netty Buffer Overflow Vulnerability

  • CVE-2026-44248: Netty MQTT Decoder DoS Vulnerability

  • CVE-2026-42587: Netty Decompression DoS 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