zeroconf

CVE-2026-48487

CVE-2026-48487 is a medium-severity security vulnerability in zeroconf (pip), affecting versions < 0.149.16. It is fixed in 0.149.16.

Key facts
CVSS score
6.5
Medium
Attack vector
Adjacent
Issuing authority
GitHub Advisory Database
Affected package
zeroconf
Fixed in
0.149.16
Disclosed
2026

Summary

Impact readcharacterstring and readstring in src/zeroconf/protocol/incoming.py sliced self.data[self.offset : self.offset + length] and advanced self.offset by the declared length without checking it against self.datalen. Python's slice silently returns fewer bytes when the end index runs past the buffer, so a record whose 16-bit RDLENGTH (RFC 1035 §3.2.1) over-advertised by tens of kilobytes was constructed from a truncated payload, appended to DNSIncoming.answers, and committed to the cache before any later parse failure surfaced. The follow-up read_name for the next record then failed, but the corrupt record had already entered the answer list and propagated to DNSCache and ServiceInfo. Any unauthenticated host on the local link (UDP/5353, 224.0.0.251 / ff02::fb) can multicast a single mDNS response carrying a TXT, HINFO, or A/AAAA record that advertises rdlength=65535 and only a handful of real payload bytes; consumers calling ServiceInfo.properties then parse the truncated bytes as if they matched the wire, and downstream integrations (Home Assistant and other zeroconf-driven discovery) trust the decoded record. The bug is parser-state desync rather than RCE, but it seeds the cache with attacker-shaped key/value and address records for a TTL window and is a building block for higher-impact chains. The impact is likely lower than the other recently released advisories as there is no additional risk of OOM so the severity was manually set to low to override the score CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N (6.5, Medium) since that doesn't fully consider the mDNS threat model. Patches Fixed in zeroconf 0.149.16 (PR #1756). Note that this change originally intended to ship in 0.149.13 but we ran out of space on PyPI: see https://github.com/python-zeroconf/python-zeroconf/issues/1769 Upgrade to >= 0.149.16. 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 #1756, fix Issue #1752, public tracking issue RFC 1035 §3.2.1, RFC 1035 §3.3, CWE-130

Impact

Severity and exposure

CVE-2026-48487 has a CVSS score of 6.5 (Medium). The vector is reachable from an adjacent network, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (0.149.16). Upgrading removes the vulnerable code path.

Affected versions

pip

  • zeroconf (< 0.149.16)

Security releases

  • zeroconf → 0.149.16 (pip)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2026-48487 is reachable in your applications. Explore open-source security for your team.

See if CVE-2026-48487 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2026-48487 in your environment

Remediation advice

Upgrade zeroconf to 0.149.16 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2026-48487

What is CVE-2026-48487?

CVE-2026-48487 is a medium-severity security vulnerability in zeroconf (pip), affecting versions < 0.149.16. It is fixed in 0.149.16.

How severe is CVE-2026-48487?

CVE-2026-48487 has a CVSS score of 6.5 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of zeroconf are affected by CVE-2026-48487?

zeroconf (pip) versions < 0.149.16 is affected.

Is there a fix for CVE-2026-48487?

Yes. CVE-2026-48487 is fixed in 0.149.16. Upgrade to this version or later.

Is CVE-2026-48487 exploitable, and should I be worried?

Whether CVE-2026-48487 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2026-48487 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2026-48487?

Upgrade zeroconf to 0.149.16 or later.

Stop the waste.
Protect your environment with Kodem.