PyPI: zeroconf

CVE-2026-48487

Safety vulnerability ID: SFTY-20260622-18297

Affected versions of the `zeroconf` package are vulnerable to Improper Input Validation due to unvalidated `rdlength` in record payload readers. The `_read_character_string` and `_read_string` functions in `src/zeroconf/_protocol/incoming.py` slice `self.data[self.offset : self.offset + length]` and advance `self.offset` by the declared `length` without verifying it against `self._data_len`, allowing malformed records to be appended to `DNSIncoming._answers`. An attacker on the local network can exploit this by sending a crafted mDNS packet with an over-advertised `rdlength`, causing the cache to store attacker-controlled records, potentially affecting downstream integrations like Home Assistant.

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

Overview

zeroconf: Unvalidated rdlength in record payload readers allows LAN-local cache corruption via crafted mDNS packet

Advisory

zeroconf – Improper Handling of Length Parameter Inconsistency

Affected Package

Affecting zeroconf package, versions< 0.149.16

Also affects

---

How to Fix

Upgradezeroconfto0.149.16or 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