CVE-2025-59419Netty netty-codec-smtp SMTP Command Injection Vulnerability Allowing Email Forgery
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.
What to do
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | netty | Fix pending | UBUNTU-CVE-2025-59419 | |
| Ubuntu 26.04 | netty | Fix pending | UBUNTU-CVE-2025-59419 | |
| Ubuntu 25.10 | netty | Fixed | 1:4.1.48-10ubuntu0.25.10.1 | UBUNTU-CVE-2025-59419 |
| Ubuntu 24.04 | netty | Fix pending | 1:4.1.48-9ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-59419 |
| Ubuntu 22.04 | netty | Fix pending | 1:4.1.48-4+deb11u2ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-59419 |
| Ubuntu 20.04 | netty | Fix pending | 1:4.1.45-1ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-59419 |
| Ubuntu 18.04 | netty | Fix pending | 1:4.1.7-4ubuntu0.1+esm4 (Ubuntu Pro) | UBUNTU-CVE-2025-59419 |
| Debian 14 | netty | Fixed | 1:4.1.48-11 | DEBIAN-CVE-2025-59419 |
| Debian 13 | netty | Fixed | 1:4.1.48-10+deb13u1 | DEBIAN-CVE-2025-59419 |
| Debian 12 | netty | Fixed | 1:4.1.48-7+deb12u2 | DEBIAN-CVE-2025-59419 |
| Maven library | io.netty:netty-codec-smtp | Fixed | 4.1.128.Final | GHSA-jq43-27x9-3v86 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- netty: affected: < 4.2.7.Final, >= 4.2.0.Alpha1, < 4.1.128.Final
References
- https://github.com/netty/netty/security/advisories/GHSA-jq43-27x9-3v86
- https://github.com/netty/netty/commit/1782e8c2060a244c4d4e6f9d9112d5517ca05120
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.