PyPI: zeroconf

CVE-2026-48045

Safety vulnerability ID: SFTY-20260611-31822

Affected versions of the `python-zeroconf` package are vulnerable to Denial of Service (DoS) due to unbounded memory allocation in the `AsyncListener.handle_query_or_defer` method. This method retains every truncated incoming query in `self._deferred[addr]` and initiates a timer for each address, without capping the list size or the number of distinct address keys, and performs an O(N) deduplication check on each arrival. An attacker on the local network can exploit this by sending a flood of spoofed-source, byte-distinct TC-flagged mDNS queries, leading to memory exhaustion and potential process termination on memory-constrained systems.

Created at: Aug 17, 2026Updated at: Aug 17, 2026

Overview

python-zeroconf: Unbounded TC-deferred queue allows LAN-local memory exhaustion via spoofed-source flood

Advisory

zeroconf – Denial of Service (DoS)

Affected Package

Affecting zeroconf package, versions< 0.149.12

Also affects

---

How to Fix

Upgradezeroconfto0.149.12or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more