Use-After-Free Vulnerability in pycares Python Module by Pycares
CVE-2025-48945
8.2HIGH
What is CVE-2025-48945?
The pycares Python module, which interacts with the C library c-ares for asynchronous DNS requests, is susceptible to a use-after-free vulnerability. This issue arises when a Channel object is garbage collected while there are still pending DNS queries. As a result, this could lead to a fatal error in Python and cause the interpreter to crash. The vulnerability has been addressed in pycares version 4.9.0, which introduces a mechanism for safe channel destruction, eliminating this risk.
Affected Version(s)
aiodns < 4.9.0