Repository navigation
Security
This release fixes GHSA-x356-qggw-x7x5 and GHSA-3q4c-32qp-r6gg (no CVE identifier assigned yet).
- Sender IP spoofing in
get_server_ipaddress()(GHSA-x356-qggw-x7x5): an address the sender wrote before a HELO marker in the comment of thefromclause could be returned as the sender IP. Text around a HELO marker is no longer a candidate, and a hop that names two different addresses names no sender IP: the method returnsNoneand the hop is reported asambiguous-sender-addressinreceived_header_defects. - Attachment lost in
write_attachments()(GHSA-3q4c-32qp-r6gg): two attachments whose names the filesystem takes for one file (trailing dots and spaces on Windows, letter case, Unicode normalization forms) replaced each other without a defect. The filesystem now decides whether two names of one batch are one file, and each attachment is written under a name of its own.
Behavior change: get_server_ipaddress() fails closed in more cases. A trusted hop whose from clause is ambiguous now returns None where earlier releases returned an address.
Thanks to:
@nicholaswilliamsons09
What's Changed
- fix: read standard input as bytes on the command line by @fedelemantuano in #200
- fix: text before a HELO marker in a comment is not the sender IP by @fedelemantuano in #201
- fix: attachments whose names differ by trailing dots no longer replace each other by @fedelemantuano in #202
- fix: a hop that names two different addresses names no sender IP by @fedelemantuano in #203
- fix: the filesystem says whether two attachment names are one file by @fedelemantuano in #204
Full Changelog: 4.13.0...4.14.0