CVE-2022-22846 dnslib has DNS reply verification issue

High 7.5 Published Updated

The dnslib Python library fails to validate DNS transaction IDs, allowing attackers to spoof DNS responses and bypass security controls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-22846?

CVE-2022-22846 is a high-severity vulnerability in n/a, published on 9 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The dnslib package through 0.9.16 for Python does not verify that the ID value in a DNS reply matches an ID value in a query.

Which versions are affected by CVE-2022-22846?

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

PackageAffectedFixed in
dnslib PyPIAll versions0.9.17
dnslib PyPIAll versions0.9.17
dnslib PyPIAll versions0.9.17

Products include Dnslib Project Dnslib.

How do I fix CVE-2022-22846?

Upgrade dnslib to 0.9.17 or later.

Is CVE-2022-22846 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-22846, GHSA-r478-c2pc-m7gx, PYSEC-2022-4, UBUNTU-CVE-2022-22846.

Is CVE-2022-22846 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free