CVE-2022-22846: dnslib has DNS reply verification issue
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.4235%
CWE
Published
1/12/2022
Updated
9/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dnslib | pip | < 0.9.17 | 0.9.17 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing TXID validation in DNS response handling. The GitHub commit 76e8677 explicitly adds this check in client.py, specifically after parsing the response packet. The pre-patch code in client.py processed responses without comparing q.header.id (query ID) and a.header.id (response ID). Since the fix was applied to the code responsible for sending queries and processing responses (as shown in the client.py diff), the vulnerable function is identified as the DNSRecord.send method, which handles the transmission and initial response processing.