Skip to content
High 7.5

mail-parserにメールの送信元IPアドレスを偽装される脆弱性

CVE-2026-129297 First seen on SecPulse

Summary

mail-parserの4.6.2より前では、get_server_ipaddress()が攻撃者の書いたReceivedヘッダーから送信元IPアドレスを選んでしまうため、攻撃者が指定したIPアドレスとしてメールを扱われるおそれがあります。CVSSは7.5で、修正版は4.6.2です。この値で送信元を判断している場合は、早めに4.6.2へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

mail-parserの4.6.2より前では、get_server_ipaddress()が攻撃者の書いたReceivedヘッダーから送信元IPアドレスを選んでしまうため、攻撃者が指定したIPアドレスとしてメールを扱われるおそれがあります。CVSSは7.5で、修正版は4.6.2です。この値で送信元を判断している場合は、早めに4.6.2へ更新してください。

Affected packages

PackageAffected → Fixed
SpamScopemail-parser —
pipmail-parser
< 4.6.2→ 4.6.2
PyPImail-parser
< 4.6.2→ 4.6.2
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details