CVE-2025-48945
pycares is a Python module which provides an interface to c-ares. …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55
- github.com/aio-libs/aiodns/releases/tag/v3.5.0
- github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4
- github.com/saghul/pycares/releases/tag/v4.9.0
- github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35
- nvd.nist.gov/vuln/detail/CVE-2025-48945
- cve.org/CVERecord?id=CVE-2025-48945
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.