MimeKit: CRLF Injection in Quoted Local-Part Enables SMTP Command Injection and Email Forgery
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
MimeKit is a C# library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME), as defined by numerous IETF specifications. Prior to version 4.15.1, a CRLF injection vulnerability in MimeKit 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. This issue has been patched in version 4.15.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jstedfast | MimeKit | before 4.15.1 | 4.15.1 | Patch available | CNA |
| — | MimeKit (NuGet) | before 4.15.1 | 4.15.1 | Patch available | GHSA-g7hc-96xr-gvvx |
- MimeKit Vendorjstedfast Affected before 4.15.1 Fixed in 4.15.1 Patch available CNA
- MimeKit (NuGet) Vendor— Affected before 4.15.1 Fixed in 4.15.1 Patch available GHSA-g7hc-96xr-gvvx
Remediation
- Fix · CNA MimeKit (jstedfast) Fixed in 4.15.1
- Fix · GHSA-g7hc-96xr-gvvx MimeKit (NuGet) Fixed in 4.15.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-30227
- 2026-10-03 Alias added: GHSA-g7hc-96xr-gvvx
References
Sources
- CVE-2026-30227 · CVE Program
- CVE-2026-30227 · NVD
- FIRST EPSS
- GHSA-g7hc-96xr-gvvx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences