Read the docs

Regular expression backtracking DoS in eml_parser Received-header parsing

Priority LOW 39CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-1333.

Summary

eml_parser versions before 3.0.4 are affected. The routing parser builds a regular expression from attacker-controlled Received headers, and a formatting difference can make the expression unmatchable, causing catastrophic backtracking (CWE-1333). An unauthenticated remote attacker can send one small crafted email that pins a parser worker and creates sustained queue backlog when the message is parsed with decode_email, decode_email_bytes or parse_email.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Fix Fixed eml_parser (GOVCERT-LU): 3.0.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
GOVCERT-LUeml_parserbefore 3.0.43.0.4Patch availableCNA
  • eml_parser VendorGOVCERT-LU Affected before 3.0.4 Fixed in 3.0.4 Patch available CNA

Remediation

Upgrade eml_parser to version 3.0.4, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA eml_parser (GOVCERT-LU) Fixed in 3.0.4

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-129307

References

  • TI-2026-32722 eml_parser: Recursion DoS via nested message/rfc822 attachments CVSS 4.0MEDIUM 6.3
  • TI-2026-23366 eml_parser: Path Traversal in Official Example Script Leading to Arbitrary File Write CVSS 3.1MEDIUM 5.5
  • TI-2026-40149 eml_parser: DoS via deeply nested parens in Received headers CVSS 3.1HIGH 7.5
  • TI-2026-40148 eml_parser: Parser DoS via deeply nested parentheses in e-mail headers CVSS 3.1MEDIUM 5.3
  • TI-2026-40147 eml_parser: URL extraction bypass via HTML entities in URLs CVSS 3.1MEDIUM 6.5

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences