{"id":"CVE-2026-45711","published":"2026-07-20T14:39:06Z","modified":"2026-07-21T15:42:56Z","title":"Mailpit: Path traversal & arbitrary file write in mailpit dump --http via attacker-controlled message IDs","vendor":"axllent","product":"mailpit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00389,"percentile":0.24715,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/axllent/mailpit/security/advisories/GHSA-qx5x-85p8-vg4j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/axllent/mailpit/releases/tag/v1.30.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":4.94},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"axllent","affectedVersions":[{"vendor":"axllent","product":"mailpit","versions":["< 1.30.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T15:38:53.037071Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/axllent/mailpit","vulnerableRanges":["<1.30.0"],"patched":["1.30.0"],"from":["GHSA-qx5x-85p8-vg4j","GO-2026-5599"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45967","exploited":false,"provenance":"source"}}