# CVE-2026-129307: eml_parser: Algorithmic-complexity DoS (O(n^4) regex backtracking) in Received-header parsing

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-11-16T18:01:59.870Z
- Modified: 2026-11-19T23:00:36.652Z
- Also known as: GHSA-m4g8-47f9-h588
- Weaknesses: CWE-407, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

eml_parser serves as a python module for parsing eml files and returning various information found in the e-mail as well as computed information. In 3.0.3 and earlier, eml_parser.routing.parserouting() in eml_parser/routing.py builds a regular expression with multiple greedy capture groups and appends the npdate date literal extracted from a normalized copy of an attacker-controlled Received header, then searches that expression against the original unnormalized line. A formatting difference can make the trailing literal impossible to match, causing exhaustive backtracking across the greedy groups at each start position. The unsliced Received-header path is invoked by decode_email, decode_email_bytes, and parse_email, so one small unauthenticated message can pin a parser worker and create sustained queue backlog. This issue is fixed in version 3.0.4.

(As written by CVE List.)

## Affected

- GOVCERT-LU eml_parser: < 3.0.4
- eml-parser (PyPI): before 3.0.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/GOVCERT-LU/eml_parser/security/advisories/GHSA-m4g8-47f9-h588> (web)
- <https://github.com/GOVCERT-LU/eml_parser/commit/54ea6e9f54fecda3059283ccdb6a6fd99e7ce92f> (web)
- <https://github.com/GOVCERT-LU/eml_parser/releases/tag/v3.0.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129307> (advisory)
- <https://github.com/GOVCERT-LU/eml_parser> (package)

## Sources

- CVE List: [CVE-2026-129307](https://www.cve.org/CVERecord?id=CVE-2026-129307), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-m4g8-47f9-h588](https://github.com/advisories/GHSA-m4g8-47f9-h588), CC-BY-4.0, modified 2026-11-19
- NVD: [CVE-2026-129307](https://nvd.nist.gov/vuln/detail/CVE-2026-129307), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-129307 · Whole record: https://cve.day/CVE-2026-129307.json · Rebuilt by cve.day 2026-11-25T22:59:50.917Z
