CVE-2026-47184: Zeroconf Zeroconf Has Unbounded DNS Record Vulnerability

MODERATE
Advisory Identifier: GHSA-rfg2-pjw2-56x2
CVSS 6.5
CWE-400 CWE-770
Published
Advisory Summary

CVE-2026-47184 is a MODERATE (CVSS 6.5) zeroconf has unbounded dns record vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Zeroconf libraries in the PyPI ecosystem. The issue involves zeroconf has unbounded dns record cache that allows lan-local memory exhaustion via multicast flood. Remediation is available by upgrading affected packages to version 0.149.7.

CVE-2026-47184 at a Glance

CVE Identifier CVE-2026-47184
GHSA Identifier GHSA-rfg2-pjw2-56x2
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Zeroconf
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-47184

To remediate this vulnerability, upgrade all affected Zeroconf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

zeroconf fixed: 0.149.7
pip install zeroconf>=0.149.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show zeroconf

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-47184, inspect your installed packages using pip:

pip show zeroconf

Analyze the terminal output to locate any version of Zeroconf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.149.7), your application is affected.

Note: The pip show zeroconf command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Zeroconf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact `DNSCache._async_add` inserted every response record into `cache`, `_expirations`, `_expire_heap`, and `service_cache` with no cap on entry count. The only pre-existing protection was a PTR TTL floor (`_DNS_PTR_MIN_TTL = 1125` s, RFC 6762 §10), which actually *prolonged* attacker-injected records, and a periodic `async_expire` on `_CACHE_CLEANUP_INTERVAL = 10` s that could not keep up with a flood. Any unauthenticated host on the local link (UDP/5353, `224.0.0.251` / `ff02::fb`) can multicast valid mDNS responses with unique names (RFC 6762 §11 allows up to 253 bytes each) and watch them accumulate. On memory-constrained deployments (Home Assistant on Raspberry-Pi-class hardware is the canonical victim) sustained traffic OOM-kills the process; under lighter load, every cache lookup and every periodic expiry pass grows linearly slower, starving asyncio and breaking unrelated zeroconf consumers (discovery, registration, ServiceBrowser callbacks). A second variant — re-multicasting cached records with shifting TTLs — grows `_expire_heap` unbounded between cleanup runs without touching `cache` or `_total_records`. ### Patches Fixed in `zeroconf` 0.149.6 ([PR #1718](https://github.com/python-zeroconf/python-zeroconf/pull/1718)). 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 #1718](https://github.com/python-zeroconf/python-zeroconf/pull/1718), fix - [Issue #1715](https://github.com/python-zeroconf/python-zeroconf/issues/1715), public tracking issue - [RFC 6762 §10](https://www.rfc-editor.org/rfc/rfc6762#section-10), [RFC 6762 §11](https://www.rfc-editor.org/rfc/rfc6762#section-11), [CWE-400](https://cwe.mitre.org/data/definitions/400.html)

CVE-2026-47184 Affected Zeroconf Versions

1 component(s)
Fixed Versions:
0.149.7
Product / Package Ecosystem Affected Versions Fixed Version
zeroconf
PyPI
< 0.149.7
0.149.7

References

Frequently Asked Questions

What is CVE-2026-47184?
CVE-2026-47184 is a security vulnerability in Zeroconf involving zeroconf has unbounded DNS record cache that allows LAN-local memory exhaustion via multicast flood under CWE-400: Uncontrolled Resource Consumption.
Which Zeroconf versions are affected?
Affected versions include releases prior to 0.149.7 across affected packages: zeroconf.
What version fixes CVE-2026-47184?
Upgrading to 0.149.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zeroconf affected?
Yes, zeroconf is affected in releases prior to 0.149.7. Upgrade your dependency to 0.149.7 or later.
What is the CVSS score of CVE-2026-47184?
CVE-2026-47184 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-47184?
CVE-2026-47184 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2026-47184?
Run the dependency tree command: 'pip show zeroconf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rfg2-pjw2-56x2",
  "modified" : "2026-05-29T20:18:53Z",
  "published" : "2026-05-29T20:18:53Z",
  "aliases" : [ "CVE-2026-47184" ],
  "summary" : "zeroconf has unbounded DNS record cache that allows LAN-local memory exhaustion via multicast flood",
  "details" : "### Impact\n\n`DNSCache._async_add` inserted every response record into `cache`, `_expirations`, `_expire_heap`, and `service_cache` with no cap on entry count. The only pre-existing protection was a PTR TTL floor (`_DNS_PTR_MIN_TTL = 1125` s, RFC 6762 §10), which actually *prolonged* attacker-injected records, and a periodic `async_expire` on `_CACHE_CLEANUP_INTERVAL = 10` s that could not keep up with a flood.\n\nAny unauthenticated host on the local link (UDP/5353, `224.0.0.251` / `ff02::fb`) can multicast valid mDNS responses with unique names (RFC 6762 §11 allows up to 253 bytes each) and watch them accumulate. On memory-constrained deployments (Home Assistant on Raspberry-Pi-class hardware is the canonical victim) sustained traffic OOM-kills the process; under lighter load, every cache lookup and every periodic expiry pass grows linearly slower, starving asyncio and breaking unrelated zeroconf consumers (discovery, registration, ServiceBrowser callbacks). A second variant — re-multicasting cached records with shifting TTLs — grows `_expire_heap` unbounded between cleanup runs without touching `cache` or `_total_records`.\n\n### Patches\n\nFixed in `zeroconf` 0.149.6 ([PR #1718](https://github.com/python-zeroconf/python-zeroconf/pull/1718)). Upgrade to `>= 0.149.6`.\n\n### Workarounds\n\nThere 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.\n\n### Resources\n\n- [PR #1718](https://github.com/python-zeroconf/python-zeroconf/pull/1718), fix\n- [Issue #1715](https://github.com/python-zeroconf/python-zeroconf/issues/1715), public tracking issue\n- [RFC 6762 §10](https://www.rfc-editor.org/rfc/rfc6762#section-10), [RFC 6762 §11](https://www.rfc-editor.org/rfc/rfc6762#section-11), [CWE-400](https://cwe.mitre.org/data/definitions/400.html)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zeroconf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.149.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/python-zeroconf/python-zeroconf/security/advisories/GHSA-rfg2-pjw2-56x2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/python-zeroconf/python-zeroconf/issues/1715"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/python-zeroconf/python-zeroconf/pull/1718"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/python-zeroconf/python-zeroconf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-29T20:18:53Z",
    "nvd_published_at" : null
  }
}