WaratekVRT Sign in

CVE-2025-59419

Severity5.5 Medium CVSS 4.0
Fixed in4.2.7.Final, 4.1.128.Final
WeaknessOS command injection (CWE-78)
Published15 Oct 2025
Updated19 Oct 2026

Description

Netty is an asynchronous, event-driven network application framework. In versions prior to 4.1.128.Final and 4.2.7.Final, the SMTP codec in Netty contains an SMTP command injection vulnerability due to insufficient input validation for Carriage Return (\r) and Line Feed (\n) characters in user-supplied parameters. The vulnerability exists in io.netty.handler.codec.smtp.DefaultSmtpRequest, where parameters are directly concatenated into the SMTP command string without sanitization. When methods such as SmtpRequests.rcpt(recipient) are called with a malicious string containing CRLF sequences, attackers can inject arbitrary SMTP commands. Because the injected commands are sent from the server's trusted IP address, resulting emails will likely pass SPF and DKIM authentication checks, making them appear legitimate. This allows remote attackers who can control SMTP command parameters (such as email recipients) to forge arbitrary emails from the trusted server, potentially impersonating executives and forging high-stakes corporate communications. This issue has been patched in versions 4.1.129.Final and 4.2.8.Final. No known workarounds exist.

CWE-93

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: yes, technical impact: partial.
  • Indexed PoC none indexed
  • EPSS 1.6% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR command-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-78: OS Command Injection.
Candidate fix https://github.com/netty/netty/commit/1782e8c2060a244c4d4e6f9d9112d5517ca05120 : a commit: the change itself

How to mitigate CVE-2025-59419

Upgrade the affected software to a release that fixes it: 4.2.7.Final or 4.1.128.Final. Until you can, Waratek RASP blocks exploitation with its process rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update April 2026 ↗ CPU 2026-Q2 Oracle Analytics / Platform Security (netty-codec-smtp) (8.2.0.0.0)
Oracle Critical Patch Update January 2026 ↗ CPU 2026-Q1 Oracle GoldenGate / Java Delivery (Netty) (21.3-21.20, 23.4-23.10)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Analytics Platform Security (netty-codec-smtp) 8.2.0.0.0 8.2.0.0.0
Oracle GoldenGate Java Delivery (Netty) 21.3-21.20, 23.4-23.10

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
io.netty:netty-codec-smtp 4.2.0.Alpha1 4.2.7.Final unbounded
io.netty:netty-codec-smtp 0 4.1.128.Final unbounded

Products and versions

1 product, 2 version entries
SourceVendorProductSchemeAffected versions
osv io.netty netty-codec-smtp generic < 4.1.128 · ≥ 4.2.0 and < 4.2.7

References

URLTags
https://github.com/netty/netty/commit/1782e8c2060a244c4d4e6f9d9112d5517ca05120 commit
https://github.com/netty/netty/security/advisories/GHSA-jq43-27x9-3v86 WEB
https://github.com/netty/netty/commit/2b3fddd3339cde1601f622b9ce5e54c39f24c3f9 WEB
https://gist.github.com/DepthFirstDisclosures/ddacca28cb94b48fa8ab998cef59ed8c WEB
https://github.com/netty/netty PACKAGE
https://www.depthfirst.com/post/our-ai-agent-found-a-netty-zero-day-that-bypasses-email-authentication-the-story-of-cve-2025-59419 WEB

Timeline

Published2025-10-15By the CVE Program.
NVD record modified2026-10-19NVD's own last-modified date for this record.