{"id":"CVE-2026-47184","aliases":["CVE-2026-47184","GHSA-rfg2-pjw2-56x2","PYSEC-2026-3439"],"related":[],"kind":"vulnerability","state":"published","title":"Zeroconf: Unbounded DNS record cache allows LAN-local memory exhaustion via multicast flood","summary":"Zeroconf is a pure Python implementation of multicast DNS service discovery. Prior to 0.149.7, DNSCache._async_add inserted every response record into cache, _expirations, _expire_heap, and service_cache without a cap, allowing unauthenticated hosts on the local link over UDP/5353 (224.0.0.251 / ff02::fb) to multicast valid mDNS responses with unique names and cause memory exhaustion, slower cache lookups, slower async_expire passes, and broken discovery, registration, and ServiceBrowser callbacks. This issue is fixed in version 0.149.7.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Zeroconf is a pure Python implementation of multicast DNS service discovery. Prior to 0.149.7, DNSCache._async_add inserted every response record into cache, _expirations, _expire_heap, and service_cache without a cap, allowing unauthenticated hosts on the local link over UDP/5353 (224.0.0.251 / ff02::fb) to multicast valid mDNS responses with unique names and cause memory exhaustion, slower cache lookups, slower async_expire passes, and broken discovery, registration, and ServiceBrowser callbacks. This issue is fixed in version 0.149.7.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"}],"published":"2026-05-29T20:18:53.000Z","modified":"2026-08-17T19:56:27.247Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 0.149.7","status":"affected"}],"vendor":"python-zeroconf","product":"python-zeroconf","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.149.7"}],"ecosystem":"PyPI","package":"zeroconf","purl":"pkg:pypi/zeroconf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.149.7"}],"vendor":"paulsm","product":"zeroconf","cpe":"cpe:2.3:a:paulsm:zeroconf:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.149.7"}],"ecosystem":"PyPI","package":"zeroconf","purl":"pkg:pypi/zeroconf","source":"pysec"}],"references":[{"url":"https://github.com/python-zeroconf/python-zeroconf/security/advisories/GHSA-rfg2-pjw2-56x2","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-zeroconf/python-zeroconf/issues/1715","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-zeroconf/python-zeroconf/pull/1718","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-zeroconf/python-zeroconf/commit/0ad3f37b5b852b8f614d322283d148efb2cef6e4","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/python-zeroconf/python-zeroconf/releases/tag/0.149.7","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/python-zeroconf/python-zeroconf","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/zeroconf","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rfg2-pjw2-56x2","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47184","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-21T01:50:24.015Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47184","url":"https://www.cve.org/CVERecord?id=CVE-2026-47184","licence":"CVE Terms of Use","modified":"2026-07-21T01:50:36.488Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rfg2-pjw2-56x2","url":"https://github.com/advisories/GHSA-rfg2-pjw2-56x2","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:03.274Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47184","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47184","licence":"Public domain","modified":"2026-08-17T19:56:27.247Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3439","url":"https://osv.dev/vulnerability/PYSEC-2026-3439","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:54.094Z"}],"updatedAt":"2026-11-25T22:59:28.510Z","epss":{"score":0.00238,"percentile":0.15853,"date":"2026-12-01T12:00:22.000Z"}}