# CVE-2026-45713: Mailpit: Unauthenticated remote memory-exhaustion DoS via unlimited SMTP DATA and /api/v1/send body sizes

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T15:54:12.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-fpxj-m5q8-fphw, GO-2026-5376
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Mailpit is an email testing tool and API for developers. Prior to version 1.30.0, the Mailpit SMTP server has a Server.MaxSize int field that controls the maximum allowed DATA payload size, but the field is never assigned anywhere outside test code, leaving it at Go's zero value (0 ⇒ "no limit"). The same applies to the HTTP /api/v1/send endpoint, whose request body is decoded with json.NewDecoder(r.Body) and no http.MaxBytesReader. Because Mailpit's default listeners bind [::]:1025 (SMTP) and [::]:8025 (HTTP), with no authentication required on either, a single network-reachable attacker can push an arbitrarily large message into Mailpit and watch RAM consumption spike with a ~7-10× amplification factor (raw frame → enmime envelope tree → search-text index → zstd-encoded write to SQLite). Repeating the attack — or running it concurrently from multiple connections — drives the process to OOM-kill. Version 1.30.0 contains a patch.

(As written by CVE List.)

## Affected

- axllent mailpit: < 1.30.0; before 1.30.0
- github.com/axllent/mailpit (Go): before 1.30.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-fpxj-m5q8-fphw> (exploit, advisory, vendor-advisory, web)
- <https://github.com/axllent/mailpit/releases/tag/v1.30.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45713> (advisory)
- <https://github.com/axllent/mailpit> (package)

## Sources

- CVE List: [CVE-2026-45713](https://www.cve.org/CVERecord?id=CVE-2026-45713), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-fpxj-m5q8-fphw](https://github.com/advisories/GHSA-fpxj-m5q8-fphw), CC-BY-4.0, modified 2026-09-02
- Go Vulnerability Database: [GO-2026-5376](https://pkg.go.dev/vuln/GO-2026-5376), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-45713](https://nvd.nist.gov/vuln/detail/CVE-2026-45713), Public domain, modified 2026-10-24

---

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