CVE-2025-59419
Netty netty-codec-smtp SMTP Command Injection Vulnerability Allowing Email Forgery
Reported by github_m · Published October 15, 2025
netty-codec-smtp is fixed in 4.2.7.Final and 4.1.128.Final (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| io.netty:netty-codec-smtp | Maven Central | 4.2.7.Final, 4.1.128.Final |
| management-api-for-apache-cassandra-5.0 | Chainguard | 0.1.108-r2 |
| hadoop-fips-3.5 | Chainguard | 3.5.0-r12 |
| management-api-for-apache-cassandra-4.1 | Chainguard | 0.1.108-r1 |
| pinot | Chainguard | 1.5.0-r19 |
| thingsboard | Chainguard | 4.2.1-r1 |
| tinkerpop | Chainguard | 3.8.1-r2 |
| seata | Chainguard | 2.5.0-r1 |
| trino | Chainguard | 477-r2 |
| thingsboard | Wolfi | 4.2.1-r1 |
| celeborn-0.5 | Chainguard | 0.5.4-r8 |
| management-api-for-apache-cassandra-5.0 | Wolfi | 0.1.108-r2 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| netty | netty | < 4.2.7.Final, >= 4.2.0.Alpha1, < 4.1.128.Final |
| chainguard | management-api-for-apache-cassandra-5.0 | 0 |
| chainguard | hadoop-fips-3.5 | 0 |
| chainguard | management-api-for-apache-cassandra-4.1 | 0 |
| chainguard | pinot | 0 |
| chainguard | thingsboard | 0 |
| chainguard | tinkerpop | 0 |
| chainguard | seata | 0 |
| chainguard | trino | 0 |
| wolfi | thingsboard | 0 |
| chainguard | celeborn-0.5 | 0 |
| wolfi | management-api-for-apache-cassandra-5.0 | 0 |
| chainguard | apache-hop | 0 |
| chainguard | management-api-for-apache-cassandra-4.0 | 0 |
| Maven | io.netty:netty-codec-smtp | 0, 4.2.0.Alpha1 |
| netty | netty | 4.2.0.Alpha1, 0 |
| wolfi | tez | 0 |
| chainguard | pinot-fips | 0 |
| wolfi | management-api-for-apache-cassandra-4.1 | 0 |
| wolfi | celeborn-0.5 | 0 |
…and 6 more
Timeline
- Oct 15, 2025 CVE Published
- Oct 15, 2025 Coalition ESS Score (4 in total, the first dated here)
- Oct 16, 2025 EPSS Score (30 in total, the first dated here)
- Oct 17, 2025 CVE Updated
- Dec 8, 2025 Security Advisory (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-59419
vulnetix vdb fixes CVE-2025-59419
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-59419/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/netty/netty/security/advisories/GHSA-jq43-27x9-3v86 x_refsource_CONFIRM
- https://github.com/netty/netty/commit/1782e8c2060a244c4d4e6f9d9112d5517ca05120 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-59419 advisory
- https://github.com/advisories/GHSA-jq43-27x9-3v86 advisory
- https://github.com/netty/netty/commit/2b3fddd3339cde1601f622b9ce5e54c39f24c3f9 patch
- https://gist.github.com/DepthFirstDisclosures/ddacca28cb94b48fa8ab998cef59ed8c url
- https://github.com/netty/netty url
- https://www.depthfirst.com/post/our-ai-agent-found-a-netty-zero-day-that-bypasses-email-authentication-the-story-of-cve-2025-59419 url