CVE-2025-48945 pycares has a Use-After-Free Vulnerability
HighCVSS 8.2
EPSS 0.51%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pycares(PyPI) | < 4.9.0 | 4.9.0 |
| pypi pycares(PyPI) | = 0.1.0 | No fix listed |
| pypi pycares(PyPI) | = 0.2.0 | No fix listed |
| pypi pycares(PyPI) | = 0.3.0 | No fix listed |
| pypi pycares(PyPI) | = 0.4.0 | No fix listed |
| pypi pycares(PyPI) | = 0.5.0 | No fix listed |
| pypi pycares(PyPI) | = 0.6.0 | No fix listed |
| pypi pycares(PyPI) | = 0.6.1 | No fix listed |
| pypi pycares(PyPI) | = 0.6.2 | No fix listed |
| pypi pycares(PyPI) | = 0.6.3 | No fix listed |
| pypi pycares(PyPI) | = 0.7.0 | No fix listed |
| pypi pycares(PyPI) | = 1.0.0 | No fix listed |
| pypi pycares(PyPI) | = 2.0.0 | No fix listed |
| pypi pycares(PyPI) | = 2.0.1 | No fix listed |
| pypi pycares(PyPI) | = 2.1.0 | No fix listed |
| pypi pycares(PyPI) | = 2.1.1 | No fix listed |
| pypi pycares(PyPI) | = 2.2.0 | No fix listed |
| pypi pycares(PyPI) | = 2.3.0 | No fix listed |
| pypi pycares(PyPI) | = 2.4.0 | No fix listed |
| pypi pycares(PyPI) | = 3.0.0 | No fix listed |
| pypi pycares(PyPI) | = 3.0.0b0 | No fix listed |
| pypi pycares(PyPI) | = 3.0.0b1 | No fix listed |
| pypi pycares(PyPI) | = 3.0.0b2 | No fix listed |
| pypi pycares(PyPI) | = 3.0.0b3 | No fix listed |
| pypi pycares(PyPI) | = 3.0.0b4 | No fix listed |
Show 46 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pycares(PyPI) | = 3.0.0b5 | No fix listed |
| pypi pycares(PyPI) | = 3.1.0 | No fix listed |
| pypi pycares(PyPI) | = 3.1.1 | No fix listed |
| pypi pycares(PyPI) | = 3.2.0 | No fix listed |
| pypi pycares(PyPI) | = 3.2.3 | No fix listed |
| pypi pycares(PyPI) | = 4.0.0 | No fix listed |
| pypi pycares(PyPI) | = 4.1.1 | No fix listed |
| pypi pycares(PyPI) | = 4.1.2 | No fix listed |
| pypi pycares(PyPI) | = 4.2.0 | No fix listed |
| pypi pycares(PyPI) | = 4.2.1 | No fix listed |
| pypi pycares(PyPI) | = 4.2.2 | No fix listed |
| pypi pycares(PyPI) | = 4.3.0 | No fix listed |
| pypi pycares(PyPI) | = 4.4.0 | No fix listed |
| pypi pycares(PyPI) | = 4.5.0 | No fix listed |
| pypi pycares(PyPI) | = 4.6.0 | No fix listed |
| pypi pycares(PyPI) | = 4.6.1 | No fix listed |
| pypi pycares(PyPI) | = 4.7.0 | No fix listed |
| pypi pycares(PyPI) | = 4.8.0 | No fix listed |
| debian/pycares(Debian:12) | All versions | No fix listed |
| debian/pycares(Debian:12) | = 4.3.0-2 | No fix listed |
| debian/pycares(Debian:12) | = 4.4.0-1 | No fix listed |
| debian/pycares(Debian:12) | = 4.4.0-2 | No fix listed |
| debian/pycares(Debian:12) | = 4.9.0-1 | No fix listed |
| debian/pycares(Debian:12) | = 5.0.0-1 | No fix listed |
| debian/pycares(Debian:12) | = 5.0.0-2 | No fix listed |
| debian/pycares(Debian:12) | = 5.0.0-3 | No fix listed |
| debian/pycares(Debian:12) | = 5.0.1-1 | No fix listed |
| debian/pycares(Debian:12) | = 5.0.1-2 | No fix listed |
| debian/pycares(Debian:12) | = 5.0.1-3 | No fix listed |
| debian/pycares(Debian:13) | All versions | No fix listed |
| debian/pycares(Debian:13) | = 4.4.0-2 | No fix listed |
| debian/pycares(Debian:13) | = 4.9.0-1 | No fix listed |
| debian/pycares(Debian:13) | = 5.0.0-1 | No fix listed |
| debian/pycares(Debian:13) | = 5.0.0-2 | No fix listed |
| debian/pycares(Debian:13) | = 5.0.0-3 | No fix listed |
| debian/pycares(Debian:13) | = 5.0.1-1 | No fix listed |
| debian/pycares(Debian:13) | = 5.0.1-2 | No fix listed |
| debian/pycares(Debian:13) | = 5.0.1-3 | No fix listed |
| debian/pycares(Debian:14) | < 4.9.0-1 | 4.9.0-1 |
| debian/pycares(Debian:14) | = 4.4.0-2 | No fix listed |
| pypi pycares(PyPI) | <= 4.8.0 | No fix listed |
| aio-libs aiodns | = < 4.9.0 | No fix listed |
| ubuntu/pycares(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/pycares(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/pycares(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/pycares(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35 vendor-advisory
- https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4 patch
- github.com product
- Debian Security Tracker CVE-2025-48945 vendor-advisory
- github.com
- https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55
- https://github.com/aio-libs/aiodns/releases/tag/v3.5.0
- https://github.com/saghul/pycares/releases/tag/v4.9.0
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking