{"id":"CVE-2026-129307","kind":"vulnerability","aliases":["CVE-2026-129307"],"related":[],"title":"eml_parser: crafted Received header makes Python email parsing hang","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.","summary":"eml_parser is a Python library that parses .eml email files. A crafted Received header causes a regular expression to backtrack exhaustively, pinning a parser worker and building a queue backlog.","severity":"medium","cvss":5.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["email-parsing","eml_parser","package","python"],"not_affected_if":["no-untrusted-email","offline-batch"],"how_to_check":"- `pip show eml_parser` to read the installed version; affected if it is `3.0.3` or earlier\n- Search your code for calls to `decode_email`, `decode_email_bytes` or `parse_email` run on untrusted incoming mail","fix":"- eml_parser: move to `3.0.4`","status":"open","published_at":"2026-11-16T19:17:40+00:00","first_seen_at":"2026-11-16T19:38:22+00:00","triaged_at":"2026-11-16T19:39:31+00:00","updated_at":"2026-11-16T19:39:31+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T19:39:31Z","model":"claude-haiku-5-5","output":{"fix":"- eml_parser: move to `3.0.4`","reach":"internet","title":"eml_parser: crafted Received header makes Python email parsing hang","impact":"low","summary":"eml_parser is a Python library that parses .eml email files. A crafted Received header causes a regular expression to backtrack exhaustively, pinning a parser worker and building a queue backlog.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","eml_parser","email-parsing"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"a parser worker is pinned and mail processing backs up","analyst_note":"","how_to_check":"- `pip show eml_parser` to read the installed version; affected if it is `3.0.3` or earlier\n- Search your code for calls to `decode_email`, `decode_email_bytes` or `parse_email` run on untrusted incoming mail","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["no-untrusted-email","offline-batch"],"who_is_affected":"Services that parse email messages from untrusted senders with eml_parser through decode_email, decode_email_bytes or parse_email are exposed, since one unauthenticated message can stall a worker. Batch jobs that parse only mail you control can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000717,"input_tokens":4755,"output_tokens":483,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-129307':13A,16A '-2026':12A,15A '3.0.3':82C '3.0.4':185C 'across':139C 'append':99C 'attack':112C 'attacker-control':111C 'backlog':54B,178C 'backtrack':44B,138C 'build':51B,89C 'byte':160C 'captur':96C 'caus':39B,136C 'comput':79C 'control':113C 'copi':108C 'craft':3A,36B 'creat':175C 'cve':11A,14A 'date':102C 'decod':156C,158C 'differ':127C 'e':74C 'e-mail':73C 'earlier':84C 'email':8A,18B,33B,157C,159C,163C 'email-pars':17B 'eml':1A,20B,24B,32B,55C,64C,87C 'eml_parser.routing.parserouting':85C 'exhaust':45B,137C 'express':42B,92C,119C 'extract':104C 'file':34B,65C 'fix':182C 'format':126C 'found':70C 'greedi':95C,141C 'group':97C,142C 'hang':10A 'header':5A,38B,115C,151C 'imposs':133C 'inform':69C,80C 'invok':154C 'issu':180C 'librari':29B 'line':124C 'liter':103C,132C 'mail':75C 'make':6A,129C 'match':135C 'messag':168C 'modul':61C 'multipl':94C 'normal':107C 'npdate':101C 'one':165C 'origin':122C 'packag':22B 'pars':9A,19B,31B,63C,162C 'parser':2A,21B,25B,48B,56C,172C 'parser/routing.py':88C 'path':152C 'pin':46B,170C 'posit':146C 'python':7A,23B,28B,60C 'queue':53B,177C 'receiv':4A,37B,114C,150C 'received-head':149C 'regular':41B,91C 'return':67C 'search':117C 'serv':57C 'small':166C 'start':145C 'sustain':176C 'trail':131C 'unauthent':167C 'unnorm':123C 'unslic':148C 'various':68C 'version':184C 'well':77C 'worker':49B,173C","nicknames":[],"mitigations":[],"who_affected":"Services that parse email messages from untrusted senders with eml_parser through decode_email, decode_email_bytes or parse_email are exposed, since one unauthenticated message can stall a worker. Batch jobs that parse only mail you control can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["emailparsing","emlparser","medium","package","python"],"campaign_type":null,"search_a":"'-129307':13A,16A '-2026':12A,15A 'craft':3A 'cve':11A,14A 'email':8A 'eml':1A 'hang':10A 'header':5A 'make':6A 'pars':9A 'parser':2A 'python':7A 'receiv':4A","search_b":"'backlog':54B 'backtrack':44B 'build':51B 'caus':39B 'craft':36B 'email':18B,33B 'email-pars':17B 'eml':20B,24B,32B 'exhaust':45B 'express':42B 'file':34B 'header':38B 'librari':29B 'packag':22B 'pars':19B,31B 'parser':21B,25B,48B 'pin':46B 'python':23B,28B 'queue':53B 'receiv':37B 'regular':41B 'worker':49B","search_c":"'3.0.3':82C '3.0.4':185C 'across':139C 'append':99C 'attack':112C 'attacker-control':111C 'backlog':178C 'backtrack':138C 'build':89C 'byte':160C 'captur':96C 'caus':136C 'comput':79C 'control':113C 'copi':108C 'creat':175C 'date':102C 'decod':156C,158C 'differ':127C 'e':74C 'e-mail':73C 'earlier':84C 'email':157C,159C,163C 'eml':55C,64C,87C 'eml_parser.routing.parserouting':85C 'exhaust':137C 'express':92C,119C 'extract':104C 'file':65C 'fix':182C 'format':126C 'found':70C 'greedi':95C,141C 'group':97C,142C 'header':115C,151C 'imposs':133C 'inform':69C,80C 'invok':154C 'issu':180C 'line':124C 'liter':103C,132C 'mail':75C 'make':129C 'match':135C 'messag':168C 'modul':61C 'multipl':94C 'normal':107C 'npdate':101C 'one':165C 'origin':122C 'pars':63C,162C 'parser':56C,172C 'parser/routing.py':88C 'path':152C 'pin':170C 'posit':146C 'python':60C 'queue':177C 'receiv':114C,150C 'received-head':149C 'regular':91C 'return':67C 'search':117C 'serv':57C 'small':166C 'start':145C 'sustain':176C 'trail':131C 'unauthent':167C 'unnorm':123C 'unslic':148C 'various':68C 'version':184C 'well':77C 'worker':173C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-09-07T12:34:57+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129307","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129307","severity":null,"published_at":"2026-11-16T19:17:40+00:00","modified_at":"2026-11-16T19:17:40+00:00","first_seen_at":"2026-11-16T19:38:22+00:00","fetched_at":"2026-11-16T19:38:22+00:00","note":null}],"documents":[{"id":172012,"url":"https://github.com/GOVCERT-LU/eml_parser/commit/54ea6e9f54fecda3059283ccdb6a6fd99e7ce92f","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172013,"url":"https://github.com/GOVCERT-LU/eml_parser/releases/tag/v3.0.4","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":172014,"url":"https://github.com/GOVCERT-LU/eml_parser/security/advisories/GHSA-m4g8-47f9-h588","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-09-07T12:34:57+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}