# CVE-2026-48487: Zeroconf: Unvalidated rdlength in record payload readers allows LAN-local cache corruption via crafted mDNS packet

> An attacker on the local network can corrupt the mDNS cache by sending crafted packets with invalid record lengths, potentially disrupting service discovery.

- **Severity:** Medium 5.3 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 17 Jul 2026
- **Updated:** 20 Jul 2026
- **Also known as:** DEBIAN-CVE-2026-48487, GHSA-qc2x-6f54-m6h9, OESA-2026-2832, OESA-2026-2833, PYSEC-2026-3438, UBUNTU-CVE-2026-48487, openSUSE-SU-2026:11036-1

## What is CVE-2026-48487?

CVE-2026-48487 is a medium-severity vulnerability in python-zeroconf, published on 17 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Zeroconf is a pure Python implementation of multicast DNS service discovery. Prior to 0.149.16, _read_character_string and _read_string in src/zeroconf/_protocol/incoming.py advanced self.offset by attacker-declared RDLENGTH without checking it against self._data_len, allowing unauthenticated hosts on the local link over UDP/5353 (224.0.0.251 / ff02::fb) to send a TXT, HINFO, or A/AAAA record with rdlength=65535 and seed DNSCache and ServiceInfo.properties with truncated, attacker-shaped key/value or address records. This issue is fixed in version 0.149.16.

Weakness: CWE-130 (Improper Handling of Length Parameter Inconsistency)

## Which versions are affected by CVE-2026-48487?

3 open source packages ship an affected version, including zeroconf. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `zeroconf` | PyPI | All versions | 0.149.16 |
| `zeroconf` | PyPI | All versions | 0.149.16 |
| `zeroconf` | PyPI | All versions | 0.149.16 |
| `python-zeroconf` | openSUSE:Tumbleweed | All versions | 0.149.16-1.1 |

Products: Paulsm Zeroconf.

## How do I fix CVE-2026-48487?

Upgrade zeroconf to 0.149.16 or later.

## Is CVE-2026-48487 being exploited?

There is no known exploitation of CVE-2026-48487 in the wild and no public exploit code.

## Other vulnerabilities in python-zeroconf

- [CVE-2026-47180](https://insights.sbomify.com/CVE-2026-47180/): Zeroconf: Unbounded recursion in DNS compression-pointer decoder allows LAN-local denial of service (medium 6.5)
- [CVE-2026-47183](https://insights.sbomify.com/CVE-2026-47183/): zeroconf: Unbounded exception-dedup state retains packet buffers via traceback frame locals, enabling LAN-local memory exhaustion (medium 6.5)
- [CVE-2026-47184](https://insights.sbomify.com/CVE-2026-47184/): Zeroconf: Unbounded DNS record cache allows LAN-local memory exhaustion via multicast flood (medium 6.5)
- [CVE-2026-48045](https://insights.sbomify.com/CVE-2026-48045/): Zeroconf: Unbounded TC-deferred queue allows LAN-local memory exhaustion via spoofed-source flood (medium 6.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-48487 and fix it if it is affected.

What it is: CVE-2026-48487 is a medium-severity vulnerability in python-zeroconf, published on 17 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-48487 in the wild and no public exploit code.

Affected packages and fixed versions:
- zeroconf (PyPI): affected all versions; fixed in 0.149.16
- zeroconf (PyPI): affected all versions; fixed in 0.149.16
- zeroconf (PyPI): affected all versions; fixed in 0.149.16

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-48487/ (Markdown: https://insights.sbomify.com/CVE-2026-48487/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-48487
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-48487
- OSV: https://osv.dev/vulnerability/CVE-2026-48487

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-48487/
Summaries are generated and may contain mistakes; the official description above is the record.
