Aio-libs aiodns
pycares has a Use-After-Free Vulnerability
pycares is a Python module which provides an interface to c-ares. c-ares is a C library that performs DNS requests and name resolutions asynchronously. Prior to version 4.9.0, pycares is vulnerable to a use-after-free condition that occurs when a Channel object is garbage collected while DNS queries are still pending. This results in a fatal Python error and interpreter crash. The vulnerability has been fixed in pycares 4.9.0 by implementing a safe channel destruction mechanism.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-416
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
aio-libs aiodns
- < 4.9.0
Fixed in 4.9.0
Mitigation
Upgrade aiodns to 4.9.0 or later.
References
- Vendor advisory github.com/saghul/pycares/security/advisories/…
- Patch github.com/aio-libs/aiodns/commit/f259a6e36505…
- Patch github.com/saghul/pycares/commit/ebfd7d71eb8e7…
2 more
- Release notes github.com/aio-libs/aiodns/releases/tag/v3.5.0
- Release notes github.com/saghul/pycares/releases/tag/v4.9.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.