Airshare: zeroconf: Unvalidated rdlength in record payload readers allows LAN-local cache corruption via crafted mDNS packet (CVE-2026-48487)
A vulnerability in the Airshare zeroconf Python library allows unauthenticated local network hosts to inject malformed mDNS records with over-advertised length fields, causing cache corruption. This occurs because the parser reads record lengths without validating against the actual data buffer size, leading to desynchronization of parser state and insertion of attacker-shaped records into the cache. The issue affects versions prior to 0.149.16 and is fixed in that version. The vulnerability does not allow remote code execution or denial of service but can poison the local mDNS cache, potentially impacting downstream services relying on zeroconf discovery.
AI Analysis
Technical Summary
The vulnerability arises from improper validation of the 16-bit RDLENGTH field in mDNS records parsed by the zeroconf library's _read_character_string and _read_string functions. These functions slice the data buffer based on the declared length without checking if the length exceeds the buffer size, allowing a crafted mDNS response with an inflated RDLENGTH but truncated payload to be accepted and cached. This causes parser state desynchronization and cache pollution with attacker-controlled key/value and address records. The flaw affects local network hosts sending multicast UDP packets on port 5353 and is fixed in zeroconf version 0.149.16.
Potential Impact
An unauthenticated attacker on the local link can send a single malicious mDNS response that corrupts the local zeroconf cache with attacker-controlled records for the TTL duration. This can mislead zeroconf consumers such as Home Assistant and other discovery integrations relying on ServiceInfo properties. The vulnerability does not allow remote code execution or denial of service but can enable further attack chains by poisoning the mDNS cache. The CVSS score is 6.5 (Medium), but the vendor manually rated severity as low due to the limited threat model of mDNS.
Mitigation Recommendations
Upgrade the zeroconf library to version 0.149.16 or later, where the vulnerability is fixed. There is no in-process workaround. Alternatively, restrict mDNS traffic (UDP port 5353) to trusted Layer-2 network segments using access point client isolation, guest network separation, or host firewall rules to prevent untrusted hosts from sending malicious packets.
Airshare: zeroconf: Unvalidated rdlength in record payload readers allows LAN-local cache corruption via crafted mDNS packet (CVE-2026-48487)
Description
A vulnerability in the Airshare zeroconf Python library allows unauthenticated local network hosts to inject malformed mDNS records with over-advertised length fields, causing cache corruption. This occurs because the parser reads record lengths without validating against the actual data buffer size, leading to desynchronization of parser state and insertion of attacker-shaped records into the cache. The issue affects versions prior to 0.149.16 and is fixed in that version. The vulnerability does not allow remote code execution or denial of service but can poison the local mDNS cache, potentially impacting downstream services relying on zeroconf discovery.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from improper validation of the 16-bit RDLENGTH field in mDNS records parsed by the zeroconf library's _read_character_string and _read_string functions. These functions slice the data buffer based on the declared length without checking if the length exceeds the buffer size, allowing a crafted mDNS response with an inflated RDLENGTH but truncated payload to be accepted and cached. This causes parser state desynchronization and cache pollution with attacker-controlled key/value and address records. The flaw affects local network hosts sending multicast UDP packets on port 5353 and is fixed in zeroconf version 0.149.16.
Potential Impact
An unauthenticated attacker on the local link can send a single malicious mDNS response that corrupts the local zeroconf cache with attacker-controlled records for the TTL duration. This can mislead zeroconf consumers such as Home Assistant and other discovery integrations relying on ServiceInfo properties. The vulnerability does not allow remote code execution or denial of service but can enable further attack chains by poisoning the mDNS cache. The CVSS score is 6.5 (Medium), but the vendor manually rated severity as low due to the limited threat model of mDNS.
Mitigation Recommendations
Upgrade the zeroconf library to version 0.149.16 or later, where the vulnerability is fixed. There is no in-process workaround. Alternatively, restrict mDNS traffic (UDP port 5353) to trusted Layer-2 network segments using access point client isolation, guest network separation, or host firewall rules to prevent untrusted hosts from sending malicious packets.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-airshare-CVE-2026-48487
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6aac8e1255bf5e2cf549040b
Added to database: 09/18/2026, 01:04:18 UTC
Last enriched: 09/18/2026, 01:34:54 UTC
Last updated: 09/18/2026, 01:34:54 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.