CVE-2025-59419: 
Java vulnerability analysis and mitigation

Overview

Netty, an asynchronous event-driven network application framework, was found to contain an SMTP command injection vulnerability (CVE-2025-59419) in versions prior to 4.1.128.Final and 4.2.7.Final. The vulnerability exists in the SMTP codec due to insufficient input validation for Carriage Return (\r) and Line Feed (\n) characters in user-supplied parameters, specifically in io.netty.handler.codec.smtp.DefaultSmtpRequest. The issue was discovered in October 2025 and affects applications using netty-codec-smtp to construct SMTP requests (GitHub Advisory, NVD).

Technical details

The vulnerability stems from the direct concatenation of parameters into SMTP command strings without proper sanitization. When methods like SmtpRequests.rcpt(recipient) are called with a malicious string containing CRLF sequences, attackers can inject arbitrary SMTP commands. The vulnerability has been assigned a CVSS v4.0 score of 5.5 (Medium) with the vector string 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. The issue is classified as CWE-93 (Improper Neutralization of CRLF Sequences) (GitHub Advisory, RedHat).

Impact

The vulnerability allows remote attackers who can control SMTP command parameters to forge arbitrary emails from trusted servers. Because the injected commands are sent from the server's trusted IP address, resulting emails bypass standard email authentication mechanisms including SPF, DKIM, and DMARC checks. This enables sophisticated phishing attacks and potential economic manipulation through forged high-stakes corporate communications (DepthFirst, GitHub Advisory).

Exploitability

A proof of concept exploit has been publicly documented that demonstrates how an attacker can craft malicious recipient strings containing CRLF sequences to inject arbitrary SMTP commands. The exploit allows attackers to send forged emails that appear legitimate to email clients and bypass standard email authentication checks (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Netty versions 4.1.129.Final and 4.2.8.Final. No known workarounds exist for unpatched versions. Organizations using affected versions of Netty should upgrade to the patched versions immediately (NVD, GitHub Advisory).

Community reactions

The discovery sparked a discussion within the Netty maintainer community about the responsibility of input validation in low-level APIs. The maintainers ultimately decided to follow existing precedent, noting that Netty already performs similar input validation in its HTTP codec. The vulnerability was discovered by DepthFirst's AI security agent and was responsibly disclosed to the Netty maintainers (DepthFirst).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

netty: 1:4.1.48-7+deb12u2

Fixed

sid

netty: 1:4.1.48-11

Fixed

trixie

netty: 1:4.1.48-10+deb13u1

Fixed

Ubuntu

Fixed

bionic (esm-apps)

netty: 1:4.1.7-4ubuntu0.1+esm4

Fixed

devel

netty

Affected

focal (esm-apps)

netty: 1:4.1.45-1ubuntu0.1~esm3

Fixed

jammy

netty

Affected

jammy (esm-apps)

netty: 1:4.1.48-4+deb11u2ubuntu0.1~esm2

Fixed

noble

netty

Affected

noble (esm-apps)

netty: 1:4.1.48-9ubuntu0.1~esm2

Fixed

questing

netty: 1:4.1.48-10ubuntu0.25.10.1

Fixed

Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61741CRITICAL9.3
  • Java logoJava
  • org.http4s:http4s-scala-xml_2.12
NoYesSep 24, 2026
CVE-2026-77422HIGH7.5
  • Java logoJava
  • apache-pulsar-fips-4.0
NoYesSep 23, 2026
CVE-2026-77421MEDIUM6.5
  • Java logoJava
  • kafka-4.1
NoYesSep 23, 2026
CVE-2026-77420MEDIUM5.5
  • Java logoJava
  • opensearch-2
NoYesSep 23, 2026
CVE-2026-57168NONEN/A
  • Java logoJava
  • io.openremote:openremote-manager
NoYesSep 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management