Medium, CVSS 6.9NuGetPublished
MimeKit has CRLF Injection in Quoted Local-Part that Enables SMTP Command Injection and Email Forgery
CVE-2026-30227 · GHSA-g7hc-96xr-gvvx
- Affected
- NuGet mimekit <= 4.15.0
- Fixed in
- 4.15.1· Vendor fix available
- Issue
- A CRLF Injection vulnerability in MimeKit 4.15.0 allows an attacker to embed \r\n into the SMTP envelope address local-part (when the local-part is a quoted-string). This is non-compliant with RFC 5321 and can result in SMTP command injection (e.g., injecting additional RCPT TO / DATA / RSET commands) and/or mail header injection, depending on how the application uses MailKit/MimeKit to construct and send messages. The issue becomes exploitable when the attacker can influence a MailboxAddress (MAIL FROM / RCPT TO) value that is later serialized to an SMTP session. RFC 5321 explicitly defines the SMTP mailbox local-part grammar and does not permit CR (13) or LF (10) inside Quoted-string (qtextSMTP and quoted-pairSMTP ranges exclude control characters). SMTP commands are terminated by <CRLF, making CRLF injection in command arguments particularly dangerous. Details 1) RFC 5321 local-part grammar prohibits CR/LF in quoted-string RFC 5321 defines: When the local part is a quoted…
Recommended action: Upgrade to 4.15.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.