# CVE-2025-59419: Netty netty-codec-smtp SMTP Command Injection Vulnerability Allowing Email Forgery

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Proof of concept
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.06% (percentile 82, 2026-11-26)
- **CWE:** CWE-93
- **Aliases:** GHSA-jq43-27x9-3v86
- **Published:** 2025-10-15T15:42:30.922Z
- **Modified:** 2026-10-19T16:10:00.260Z

## Who should check

- Projects that depend on Maven package io.netty:netty-codec-smtp (\>= 4.2.0.Alpha1, \< 4.2.7.Final)
- Anyone running netty \< 4.2.7.Final; \>= 4.2.0.Alpha1, \< 4.1.128.Final

## 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.

## Affected and fixed versions

- Maven `io.netty:netty-codec-smtp`: affected \>= 4.2.0.Alpha1, \< 4.2.7.Final; fixed 4.2.7.Final, 4.1.128.Final (osv)
- netty: \< 4.2.7.Final; \>= 4.2.0.Alpha1, \< 4.1.128.Final (cvelist)

## Mitigation

- Upgrade io.netty:netty-codec-smtp to one of 4.2.7.Final, 4.1.128.Final (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-59419. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-59419.md
Affected: io.netty:netty-codec-smtp >= 4.2.0.Alpha1, < 4.2.7.Final
Fixed in: 4.2.7.Final, 4.1.128.Final

Steps:
1. Search this machine and project for io.netty:netty-codec-smtp (Maven), netty: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-59419 being exploited?

There is no confirmed exploitation: CVE-2025-59419 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.06% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-59419?

Medium: CVSS 5.5 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-59419?

io.netty:netty-codec-smtp \>= 4.2.0.Alpha1, \< 4.2.7.Final.

### Is there a fix for CVE-2025-59419?

Yes. Fixed in 4.2.7.Final, 4.1.128.Final. Upgrade io.netty:netty-codec-smtp to one of 4.2.7.Final, 4.1.128.Final (or later in the same release line).

### How do I check if I'm affected by CVE-2025-59419?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/netty/netty/security/advisories/GHSA-jq43-27x9-3v86>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-59419>
- patch: <https://github.com/netty/netty/commit/1782e8c2060a244c4d4e6f9d9112d5517ca05120>
- patch: <https://github.com/netty/netty/commit/2b3fddd3339cde1601f622b9ce5e54c39f24c3f9>
- other: <https://www.depthfirst.com/post/our-ai-agent-found-a-netty-zero-day-that-bypasses-email-authentication-the-story-of-cve-2025-59419>
- other: <https://gist.github.com/DepthFirstDisclosures/ddacca28cb94b48fa8ab998cef59ed8c>
- other: <https://github.com/netty/netty>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-59419>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jq43-27x9-3v86> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-59419> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-59419>
