Skip to main content

python-zeroconf EUVDEUVD-2026-45247

| CVE-2026-47180 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-05-29 https://github.com/python-zeroconf/python-zeroconf GHSA-9pgc-3ccv-5297 PYSEC-2026-3436
6.5
CVSS 3.1 · Vendor: https://github.com/python-zeroconf/python-zeroconf
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain Layer-2 adjacency (LAN/Wi-Fi/container bridge)
  2. Delivery
    Craft ~3 kB UDP packet with 1500-deep DNS compression pointer chain
  3. Exploit
    Send packet to mDNS multicast UDP/5353
  4. Install
    Parser recurses 1500 times exceeding CPython stack limit
  5. C2
    Unhandled RecursionError escapes DNSIncoming.__init__
  6. Execute
    mDNS listener crashes or degrades
  7. Impact
    Repeat at low Hz for sustained availability impact

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires the attacker to be on the same Layer-2 network segment as the target (AV:A): the same physical or virtual LAN, the same Wi-Fi BSS, or a container sharing the same bridge network. No authentication is required (PR:N per CVSS) and no user interaction is needed (UI:N). The target host must be running a version of python-zeroconf prior to 0.149.5 with an active mDNS listener bound to UDP port 5353. No non-default configuration is required - the vulnerable code path is exercised during normal mDNS packet reception. Exploitation is limited by: (1) the adjacent-network constraint, which prevents internet-sourced attacks; (2) the requirement that the target application actively uses zeroconf's mDNS listener (passive imports do not expose the socket); and (3) CPython runtime - the advisory specifically describes the recursion limit behavior of CPython; Cython-compiled builds are also affected as the same logic applies per the .pxd diff.

Impact

The CVSS 3.1 base score of 6.5 (AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately captures the threat profile. Attack Vector Adjacent (AV:A) is the critical limiting factor: exploitation requires the attacker to already be on the same Layer-2 broadcast domain - e.g., the same Wi-Fi network, a container sharing a bridge interface, or a LAN segment. This eliminates internet-scale opportunistic exploitation, but the adjacent-network boundary is often much softer than defenders assume: guests on shared Wi-Fi, compromised IoT devices, and multi-tenant container environments all meet the threshold. Attack Complexity Low and no privileges or user interaction required (AC:L/PR:N/UI:N) means that once the attacker has LAN adjacency, exploitation requires no special conditions or setup. Availability impact is High (A:H) with no confidentiality or integrity impact (C:N/I:N), confirming this is a pure denial-of-service issue. EPSS data was not provided in the input; given the adjacent-only vector and the specificity of the target library, widespread automated exploitation is unlikely, but targeted LAN-based abuse (e.g., against smart home hubs running HomeAssistant with zeroconf) is plausible. The 'Information Disclosure' tag attached to this CVE in the source intelligence appears to be a metadata error - the CVSS vector and advisory text consistently describe a DoS-only impact. No CISA KEV listing and no external POC exist at time of analysis, but the published PR test fixture provides a near-complete attack template. Risk priority is moderate for internet-facing infrastructure and elevated for embedded or smart-home deployments where LAN adjacency assumptions are weak.

Exploit ScenarioDerived

An attacker on the same Wi-Fi network as a HomeAssistant server (or any host running python-zeroconf < 0.149.5) constructs a ~3 kB UDP packet addressed to the mDNS multicast group (224.0.0.251, port 5353) containing a DNS question whose name is encoded as a chain of approximately 1500 unique forward compression pointers terminating in a root label - a template nearly identical to the test fixture published in PR #1719. Sending this packet causes _decode_labels_at_offset to recurse ~1500 times, overflow CPython's call stack, and raise an unhandled RecursionError that escapes into asyncio's exception handler. Replaying the packet at a rate of a few packets per second produces sustained CPU burn and log flooding, degrading or silencing all mDNS-dependent service announcements on the host for the duration of the attack.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Uncontrolled recursion in python-zeroconf's mDNS DNS name decoder (versions < 0.149.5) allows any unauthenticated host on the local link to crash or degrade the mDNS listener with a single ~3 kB packet. The _decode_labels_at_offset method recurses once per DNS compression pointer (RFC 1035 §4.1.4) with no cap on unique forward-pointer chain depth; a packet carrying ~1500 chained pointers overflows CPython's default call stack, and because RecursionError was omitted from DECODE_EXCEPTIONS, the exception escaped DNSIncoming.__init__ rather than being handled gracefully. Replaying at a few hertz produces sustained CPU burn, log flooding, and degradation of all mDNS-dependent services (HomeKit, Chromecast/Matter, AirPlay, network printers); no public exploit identified at time of analysis, but the attack is trivially constructible from the published advisory and test fixture in PR #1719.

RemediationAI

Upgrade the zeroconf PyPI package to version 0.149.5 or later (pip install 'zeroconf>=0.149.5'). The fix, confirmed in PR #1719 (https://github.com/python-zeroconf/python-zeroconf/pull/1719), applies two changes: it adds a depth parameter to _decode_labels_at_offset and raises IncomingDecodeError when the chain exceeds MAX_DNS_LABELS, and it adds RecursionError to DECODE_EXCEPTIONS so any bypass of the depth check is also caught cleanly. There is no in-process workaround per the vendor advisory. If upgrading immediately is not possible, restrict mDNS traffic at the network boundary: enable AP client isolation on Wi-Fi access points to prevent station-to-station UDP traffic on port 5353; apply host firewall rules (e.g., iptables -A INPUT -p udp --dport 5353 ! -i lo -j DROP on trusted-interface-only setups) to block mDNS from untrusted interfaces; and separate guest or IoT VLANs from production segments. Note that blocking UDP/5353 will break all mDNS-dependent service discovery (HomeKit, AirPlay, Chromecast/Matter, Bonjour printers) on the restricted segments - this is an availability trade-off that must be evaluated per deployment.

Affected VersionsENISA

python-zeroconf < 0.149.5

Affected Packages

pypi zeroconf fix: 0.149.5
euvd python_zeroconf fix: 0.149.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the pure-Python (and optionally Cython-compiled) mDNS/Zeroconf implementation zeroconf distributed via PyPI (CPE: pkg:pip/zeroconf < 0.149.5). The library implements RFC 6762 Multicast DNS and RFC 1035 DNS wire format parsing. DNS name compression (RFC 1035 §4.1.4) allows labels to be represented as 2-byte pointers to other offsets in the same packet; the decoder _decode_labels_at_offset followed each pointer with a recursive call. Pointer cycles were guarded by a seen_pointers set, and label counts were capped, but the total depth of unique forward-pointer chains - which can be arbitrarily long without cycling - was never bounded. CWE-674 (Uncontrolled Recursion) is the root cause: the recursion depth grows linearly with the number of unique pointers in the packet, and CPython's default sys.setrecursionlimit (typically 1000) is easily exceeded by a chain of ~1500 pointers embedded in a ~3 kB UDP datagram. The compounding defect was that RecursionError was not included in the tuple DECODE_EXCEPTIONS, so instead of being caught and marking the packet invalid, it propagated to asyncio's uncaught-exception handler, leaving the listener in an inconsistent state.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/python-zeroconf/python-zeroconf) PRIMARY 6.5 MEDIUM
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (https://github.com/python-zeroconf/python-zeroconf).

CVSS VectorVendor: https://github.com/python-zeroconf/python-zeroconf

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Impact

DNSIncoming._decode_labels_at_offset recurses once per DNS-name compression pointer (RFC 1035 §4.1.4). Pointer cycles and label counts were capped, but the chain length of unique forward pointers was not. A single ~3 kB mDNS packet carrying ~1500 chained pointers drives the recursion past CPython's default limit, and RecursionError was not listed in DECODE_EXCEPTIONS, so it escaped DNSIncoming.__init__ and was logged by asyncio's default exception handler.

Any unauthenticated host on the local link (UDP/5353, 224.0.0.251 / ff02::fb) can degrade the mDNS listener; that includes a guest on the same Wi-Fi, a compromised IoT device, or a container on a shared bridge. Replaying at a few hertz produces sustained CPU burn and log flooding, and mDNS-dependent features (HomeKit, Chromecast/Matter, AirPlay, printers) degrade while the attack is in flight.

Patches

Fixed in zeroconf 0.149.5 (PR #1719). Upgrade to >= 0.149.5.

Workarounds

There is no in-process workaround; upgrading is the fix. Otherwise, restrict mDNS (UDP/5353) to trusted Layer-2 segments via AP client isolation, guest-network separation, or host firewall rules.

Resources

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy