CVE-2026-48487·Python vulnerability
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.
- Severity
- medium
- Software
- Python
- Fixed in
- 0.149.16
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.32% — higher than 24% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 0.149.16
Fixed in: 0.149.16
How to fix this CVE
Update the Python zeroconf library to version 0.149.16 or later to patch an input validation flaw in mDNS record parsing. Systems running zeroconf prior to 0.149.16 are vulnerable to DNS cache poisoning attacks originating from local network hosts. Verify the patch is installed and restart any services that depend on zeroconf.
sudo dnf upgrade python3-zeroconfDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
UDP packets to port 5353 (mDNS) containing TXT, HINFO, or A/AAAA records where the RDLENGTH field value (typically 65535) exceeds the actual packet data length; detection requires parsing DNS record structure and comparing declared length fields against remaining buffer sizeHow to check if you are affected
- Check installed zeroconf version: python3 -c "import zeroconf; print(zeroconf.__version__)"
- Identify services using zeroconf: grep -r "import zeroconf" /opt /home /srv --include="*.py" 2>/dev/null || ps aux | grep -i zeroconf
- Monitor UDP port 5353 for traffic from untrusted sources: sudo tcpdump -i any -n 'udp port 5353' -c 20
- Verify patch: python3 -c "import zeroconf; print('Vulnerable' if zeroconf.__version__ < '0.149.16' else 'Patched')"
FAQ
What is CVE-2026-48487?
This vulnerability allows unauthenticated attackers on a local network to inject malicious mDNS records by exploiting improper bounds checking in the zeroconf library's DNS record parsing functions. An attacker can craft records with inflated length values to corrupt the DNS cache with attacker-controlled data.
Is CVE-2026-48487 being actively exploited?
No, there are no known active exploits or public proof-of-concept code for this vulnerability at this time.
What versions of Python zeroconf are affected by CVE-2026-48487?
All versions of python-zeroconf prior to 0.149.16 are vulnerable. The affected code path exists in the _read_character_string and _read_string functions.
How do I check if my server is vulnerable to CVE-2026-48487?
Run 'python3 -c "import zeroconf; print(zeroconf.__version__)"' and compare the version number to 0.149.16. If your version is lower, the system is vulnerable.
Does Defensia detect CVE-2026-48487?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Python zeroconf is installed on a monitored server, CVE-2026-48487 will appear in your dashboard with remediation steps.
Related Python CVEs
References
- https://github.com/python-zeroconf/python-zeroconf/commit/544449596e645fcaad3834fa0cb614a54f847a82
- https://github.com/python-zeroconf/python-zeroconf/issues/1752
- https://github.com/python-zeroconf/python-zeroconf/pull/1756
- https://github.com/python-zeroconf/python-zeroconf/releases/tag/0.149.16
- https://github.com/python-zeroconf/python-zeroconf/security/advisories/GHSA-qc2x-6f54-m6h9
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-48487. Free for 1 server.
Get started free