FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

Mailpit -- SMTP DATA line reader buffers over-limit input before size enforcement

Affected packages
mailpit < 1.30.5

Details

VuXML ID 562ff91e-8407-11f1-bfde-10ffe07f9334
Discovery 2026-07-20
Entry 2026-07-20

Mailpit author reports:

Mailpit's SMTP DATA reader enforces the configured MaxMessageSize only after bufio.Reader.ReadBytes('\n') has already buffered a complete DATA line. A remote unauthenticated SMTP client can send one line larger than the configured message-size cap and force memory allocation before Mailpit returns the expected 552 5.3.4 rejection, leaving patched versions still exposed to a single-line incomplete-fix variant of the earlier SMTP DATA body-size issue.

References

URL https://github.com/axllent/mailpit/security/advisories/GHSA-r553-m4fv-5v97