# CVE-2026-30227: MimeKit: CRLF Injection in Quoted Local-Part Enables SMTP Command Injection and Email Forgery

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-05T21:50:44.000Z
- Modified: 2026-06-17T10:32:31.410Z
- Also known as: GHSA-g7hc-96xr-gvvx
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jstedfast MimeKit: < 4.15.1; before 4.15.1
- MimeKit (NuGet): before 4.15.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/jstedfast/MimeKit/security/advisories/GHSA-g7hc-96xr-gvvx> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30227> (advisory)
- <https://github.com/jstedfast/MimeKit> (package)

## Sources

- CVE List: [CVE-2026-30227](https://www.cve.org/CVERecord?id=CVE-2026-30227), CVE Terms of Use, modified 2026-03-09
- GitHub Advisory Database: [GHSA-g7hc-96xr-gvvx](https://github.com/advisories/GHSA-g7hc-96xr-gvvx), CC-BY-4.0, modified 2026-03-06
- NVD: [CVE-2026-30227](https://nvd.nist.gov/vuln/detail/CVE-2026-30227), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-30227 · Whole record: https://cve.day/CVE-2026-30227.json · Rebuilt by cve.day 2026-11-25T22:59:15.424Z
