Use After Free in Aio-Libs Aiodns
CVE-2025-48945
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.
Vulnerability class: Use-After-Free
Published · last modified .
EPSS exploit prediction
EPSS: 0.005 (39.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 39th percentile — 39.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.005 · change: +0.001
Affected products
- Aio-Libs Aiodns — versions < 4.9.0
Weakness classification (CWE)
References
- github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35
- github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55
- github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4
- github.com/aio-libs/aiodns/releases/tag/v3.5.0
- github.com/saghul/pycares/releases/tag/v4.9.0