SpamScope mail-parser
mail-parser: Sender IP address spoofing in `get_server_ipaddress()
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. Prior to 4.6.2, get_server_ipaddress() can select an attacker-controlled address from attacker-controlled Received headers. The minimum mechanism needed to distinguish this spoofing issue, derived from the advisory's remediation analysis and verified fix evidence, is appearance-based candidate selection that can treat bracketed IPv4 or IPv6 addresses or HELO markers in sender-written text as MTA-recorded addresses and can continue past a trusted hop that names no address. Applications that rely on the returned value can attribute a message to an attacker-selected sender IP address. This issue is fixed in version 4.6.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.6.2
Fixed in 4.6.2
Mitigation
Upgrade mail-parser to 4.6.2 or later.
References
- Vendor advisory github.com/SpamScope/mail-parser/security/advi…
- Patch github.com/SpamScope/mail-parser/pull/167
- Patch github.com/SpamScope/mail-parser/commit/ce3cf3…
1 more
- Release notes github.com/SpamScope/mail-parser/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.