# CVE-2026-45712: Mailpit: Concurrent map read & write in proxy CSS rewriter - remote unauth crash (fatal error: concurrent map read and map write)

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/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.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T15:53:52.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-w4vj-r5pg-3722, GO-2026-5689
- Weaknesses: CWE-362, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable no, 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 screenshot/print proxy (/proxy?data=…) maintains a package-level assets map[string]MessageAssets cache, but reads the map without holding assetsMutex while a long-running cleanup goroutine and (re-entrant) CSS-rewriting code path concurrently write to it under the lock. When the unsynchronized read coincides with a synchronized write, Go's runtime raises fatal error: concurrent map read and map write — a runtime.throw that is not recoverable by http.Server's handler-panic recover. The whole Mailpit process exits, taking the SMTP, POP3 and HTTP listeners down with it. 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 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-w4vj-r5pg-3722> (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-45712> (advisory)
- <https://github.com/axllent/mailpit> (package)

## Sources

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

---

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