{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-129295","id":"CVE-2026-129295","title":"mail-parser denial of service in email header parsing","description":"mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_","descriptionLong":"mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.","published":"2026-11-16T17:32:48.332Z","updated":"2026-11-18T20:46:07.909863599Z","reserved":"2026-11-13T22:30:18.284Z","status":"Received","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["SpamScope mail-parser"],"affectedProducts":[{"vendor":"SpamScope","product":"mail-parser","defaultStatus":null,"versions":[{"version":">= 4.2.0, < 4.6.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"mail-parser","purl":"pkg:pypi/mail-parser","ranges":[">=4.2.0 <4.6.1"],"fixed":["4.6.1"],"advisory":"GHSA-r7w7-vpq8-c5vv"}],"cwes":["CWE-1333"],"aliases":["GHSA-r7w7-vpq8-c5vv"],"references":[{"url":"https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/SpamScope/mail-parser/pull/166","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/SpamScope/mail-parser/releases/tag/4.6.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129295.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129295","tags":["advisory"]},{"url":"https://github.com/SpamScope/mail-parser","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00495,"epssPercentile":0.4325,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-129295","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129295","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-129295","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-r7w7-vpq8-c5vv","ok":true,"note":"GHSA-r7w7-vpq8-c5vv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-129295","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}