Back to list

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

GitHub · GitHub · CVE-2026-45711

ID
CVE-2026-45711
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
5.9

Summary

### Summary 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…

Product

go: github.com/axllent/mailpit

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories