python-zeroconf
CVE-2026-47183
MEDIUM
Severity by source
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Lifecycle Timeline
3DescriptionGitHub Advisory
Impact
DNSIncoming._log_exception_debug and the four QuietLogger exception-dedup methods stored an unbounded _seen_logs dict keyed by str(sys.exc_info()[1]). The seven IncomingDecodeError messages raised from _read_name / _decode_labels_at_offset (RFC 6762 §18 name-decoding error paths) all embed self.source - the peer's ephemeral source port, varying per packet - plus byte offset and pointer link, so every attacker-influenced combination produced a fresh dedup key. The stored value was the full sys.exc_info() triple, whose traceback's frame locals retained self.data (the raw inbound packet, up to 8966 bytes per RFC 6762 §17). Each unique malformed packet therefore pinned ~9 KB until process exit.
Any unauthenticated host on the local link (UDP/5353, 224.0.0.251 / ff02::fb) can drive memory growth at line rate; that includes a guest on the same Wi-Fi, a compromised IoT device, or a container on a shared bridge. On memory-constrained deployments (Home Assistant on Raspberry-Pi-class hardware is the canonical victim) sustained traffic trivially OOM-kills the process, and mDNS-dependent features (HomeKit, Chromecast/Matter, AirPlay, printers) degrade or fail.
Patches
Fixed in zeroconf 0.149.6 (PR #1717). Upgrade to >= 0.149.6.
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
- PR #1717, fix
- Issue #1714, public tracking issue
- RFC 6762 §17, RFC 6762 §18, CWE-400
AnalysisAI
Memory exhaustion in python-zeroconf's exception deduplication logic allows any unauthenticated LAN-adjacent host to permanently pin approximately 9 KB of heap memory per unique malformed mDNS packet, enabling denial of service against zeroconf-dependent applications. The flaw affects all versions of the pip package zeroconf prior to 0.149.6; the unbounded _seen_logs dict in QuietLogger and DNSIncoming._log_exception_debug retained full Python traceback objects - and thus raw inbound packet buffers - keyed by attacker-influenced exception strings derived from ephemeral source ports, byte offsets, and pointer links. No public exploit or CISA KEV listing exists at time of analysis, but the attack is mechanistically straightforward and particularly severe on memory-constrained deployments such as Home Assistant on Raspberry Pi-class hardware, where sustained flood traffic can OOM-kill the process and disable HomeKit, Chromecast/Matter, and AirPlay discovery.
Technical ContextAI
The vulnerability resides in src/zeroconf/_logger.py and src/zeroconf/_protocol/incoming.py of the python-zeroconf library (PURL: pkg:pip/zeroconf), which implements the mDNS/DNS-SD protocol stack in pure Python. The root cause is CWE-400 (Uncontrolled Resource Consumption): the QuietLogger class stored a ClassVar[dict[str, int | tuple]] named _seen_logs that was never bounded or evicted. The dict values were the full sys.exc_info() triple - including the traceback object - whose frame locals retained self.data, the raw inbound UDP payload of up to 8966 bytes per RFC 6762 §17. The dedup keys were constructed from IncomingDecodeError exception strings raised by _read_name and _decode_labels_at_offset during RFC 6762 §18 label-decoding error paths; these strings embedded self.source (the peer's ephemeral source port), byte offset, and pointer link - all attacker-controllable fields that vary per packet. The mDNS transport (UDP/5353, multicast 224.0.0.251 and ff02::fb) is inherently unauthenticated and reachable from any host on the same Layer-2 segment without prior authorization.
RemediationAI
Upgrade to zeroconf 0.149.6 or later, confirmed fixed via PR #1717 at https://github.com/python-zeroconf/python-zeroconf/pull/1717. The fix replaces the unbounded _seen_logs class-variable dict with a module-level bounded dict capped at _MAX_SEEN_LOGS = 512 entries that stores only None values (not traceback objects), eliminating both the unbounded growth and the packet buffer retention via frame locals. No in-process workaround is available per the vendor advisory at https://github.com/python-zeroconf/python-zeroconf/security/advisories/GHSA-phvx-9mgw-67r5. If immediate upgrade is not possible, apply network-layer compensating controls: (1) Enable AP client isolation on Wi-Fi access points to block guest-to-host multicast - trade-off is that isolated clients lose mDNS-based discovery including AirPlay and printer access from the isolated segment; (2) Implement VLAN-based guest network separation so untrusted devices cannot reach the mDNS multicast group on the trusted LAN - trade-off is infrastructure complexity and loss of cross-VLAN mDNS without a reflector/proxy; (3) Configure host firewall rules to drop inbound UDP/5353 from untrusted source CIDRs (e.g., iptables -A INPUT -p udp --dport 5353 ! -s <trusted-subnet>/24 -j DROP) - trade-off is that this breaks legitimate mDNS discovery from blocked segments and must be maintained as network topology changes.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: ModerateShare
External POC / Exploit Code
Leaving vuln.today
GHSA-phvx-9mgw-67r5