# CVE-2026-45711: Mailpit: Path traversal & arbitrary file write in mailpit dump --http via attacker-controlled message IDs

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- 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.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T15:53:09.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-qx5x-85p8-vg4j, GO-2026-5599
- Weaknesses: CWE-22, CWE-829
- 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 mailpit dump --http <base-url> <out-dir> sub-command downloads every message from a remote Mailpit instance and writes each one as <id>.eml inside the user-supplied output directory. The message ID field is taken verbatim from the JSON response of the remote server and concatenated into the output path with path.Join, which silently normalizes `..` segments. A malicious HTTP server impersonating Mailpit can therefore make mailpit dump write attacker-controlled bytes to any path the running user can write, fully outside the intended output directory. 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:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-qx5x-85p8-vg4j> (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-45711> (advisory)
- <https://github.com/axllent/mailpit> (package)

## Sources

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

---

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