Skip to main content

python-zeroconf EUVDEUVD-2026-45252

| CVE-2026-48487 MEDIUM
Improper Handling of Length Parameter Inconsistency (CWE-130)
2026-06-22 https://github.com/python-zeroconf/python-zeroconf GHSA-qc2x-6f54-m6h9 PYSEC-2026-3438
5.3
CVSS 4.0 · Vendor: https://github.com/python-zeroconf/python-zeroconf
View

Attack ChainAIDerived

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

  1. Access
    Gain Layer-2 adjacency to target network
  2. Delivery
    Craft mDNS response with rdlength=65535 and minimal real payload
  3. Exploit
    Multicast packet to 224.0.0.251:5353
  4. Execution
    Parser accepts truncated record without bounds check
  5. Persist
    Corrupt record committed to DNSCache and ServiceInfo
  6. Impact
    Downstream consumer reads attacker-shaped service properties as trusted

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
Exploitation Conditions

Exploitation requires the attacker to be on the same Layer-2 network segment as the target (or able to deliver UDP multicast to 224.0.0.251 or ff02::fb on port 5353 via multicast routing-uncommon in typical deployments). No authentication is required (CVSS PR:N), and no user interaction is needed (UI:N). The target must run a Python application using zeroconf < 0.149.16 that processes incoming mDNS responses. No non-default configuration or specific feature flag is required-the vulnerable code path is exercised whenever the library parses any mDNS TXT, HINFO, or address record. Exploitation is limited by: (1) the hard Layer-2 adjacency constraint-remote internet exploitation is not possible without L2 access or an mDNS proxy/gateway; (2) the impact ceiling being cache poisoning only, not code execution or memory exhaustion; (3) poisoned records expire after their TTL without re-injection.

Impact

The NVD/vendor CVSS 3.1 base score of 6.5 (AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N) is mechanically correct but the vendor explicitly overrode the severity rating to 'low', arguing the mDNS threat model limits exploitability and impact. The adjacent-network attack vector (AV:A) is a genuine and significant constraint: the attacker must be on the same Layer-2 segment or able to route mDNS multicast traffic to the target, which excludes internet-based exploitation entirely. The I:H metric reflects cache-level integrity corruption rather than system or filesystem integrity. No EPSS score is provided in source data, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no public proof-of-concept has been identified, indicating no known active exploitation at time of analysis. For smart-home and IoT deployments (Home Assistant and similar) that make authorization or routing decisions based on mDNS service metadata, cache poisoning carries materially higher real-world risk than for isolated applications. The vendor's framing of this as a 'building block for higher-impact chains' is a forward-looking risk signal worth noting, even though current impact is confined to data integrity of the discovery cache.

Exploit ScenarioDerived

An attacker connected to the same Wi-Fi or LAN segment sends a single crafted mDNS UDP response to multicast 224.0.0.251:5353, carrying a TXT record with rdlength set to 65535 and only a handful of real payload bytes. The zeroconf parser accepts the truncated record without error and commits it to DNSCache, injecting attacker-chosen key/value pairs under a legitimate-looking service name for the duration of the TTL window. A Home Assistant instance or other zeroconf consumer on the same network then reads these poisoned properties via ServiceInfo.properties, potentially acting on attacker-shaped metadata. No public proof-of-concept code has been identified, but the attack requires only standard UDP socket access to the multicast group.

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

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Cache poisoning in python-zeroconf before 0.149.16 allows any unauthenticated adjacent-network attacker to inject attacker-controlled DNS records into the local mDNS cache by multicasting a single crafted UDP packet on port 5353. The parser in _read_character_string and _read_string advanced its offset by a caller-declared length without validating it against the actual packet buffer size; Python's silent slice truncation meant over-advertised records were accepted and committed to DNSCache and ServiceInfo intact. The vendor manually downgraded severity to low, noting no RCE or OOM risk, but characterizes this as a building block for higher-impact chains in downstream consumers such as Home Assistant. No public exploit code has been identified and the vulnerability is not in CISA KEV.

RemediationAI

Upgrade python-zeroconf to version 0.149.16 or later; this is the only code-level fix and no in-process workaround exists. The patched release adds buffer bounds validation in _read_character_string and _read_string and drops records that do not consume exactly their declared rdlength. The patch is available at https://github.com/python-zeroconf/python-zeroconf/pull/1756. As a network-layer compensating control where immediate upgrade is not possible, restrict mDNS traffic (UDP/5353, multicast groups 224.0.0.251 and ff02::fb) to trusted Layer-2 segments using AP client isolation, guest-network VLAN separation, or host-based firewall rules blocking inbound UDP/5353 from untrusted sources. This prevents an untrusted host from reaching the multicast group but does not address the parser flaw, and will disrupt legitimate mDNS service discovery as a trade-off.

Affected VersionsENISA

python-zeroconf < 0.149.16

Affected Packages

pypi zeroconf fix: 0.149.16
euvd python_zeroconf fix: 0.149.16

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 library is the Python zeroconf package (pkg:pip/zeroconf), which implements multicast DNS (mDNS, RFC 6762) and DNS-SD for zero-configuration service discovery. The vulnerable code in src/zeroconf/_protocol/incoming.py reads a 16-bit RDLENGTH field from the wire (per RFC 1035 §3.2.1) and immediately uses it as a slice bound without checking self.offset + length <= self._data_len. Python's slice semantics silently return a shorter sequence when the end index exceeds the buffer, so the parser accepted a truncated record, advanced its state pointer by the full declared length, and stored the corrupt record in DNSIncoming._answers before propagating it to DNSCache and ServiceInfo. This matches CWE-130 (Improper Handling of Length Parameter Inconsistency), where an externally supplied length value is trusted without verification against the actual data boundary. The fix in PR #1756 adds explicit bounds checks raising IncomingDecodeError and a per-record resync that drops any record whose consumed byte count differs from its declared rdlength.

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 5.3 MEDIUM
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Adjacent multicast vector with no authentication or user interaction; I:H reflects full cache poisoning; no confidentiality or availability impact confirmed.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 4.3 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
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 17, 2026 - 19:22 NVD
6.5 (MEDIUM) 5.3 (MEDIUM)

DescriptionCVE.org

Impact

_read_character_string and _read_string 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._data_len. 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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6 pypi packages depend on zeroconf (3 direct, 3 indirect)

Ecosystem-wide dependent count for version 0.149.16.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
widely used Python mDNS library, common in IoT and smart-home stacks
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.3%
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

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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
Product Status
SUSE Package Hub 15 SP7 Fixed
openSUSE Tumbleweed Fixed
SUSE Package Hub 15 SP7 Affected

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