Vulnerability
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.
12 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
AZL-64307
CVE-2025-48945 affecting package python-pycares 3.1.1-3
-
AZL-67074
CVE-2025-48945 affecting package python3-pycares 4.5.0-1
-
DEBIAN-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…
-
GHSA-5qpg-rh4j-qp35
pycares has a Use-After-Free Vulnerability
-
OESA-2025-1810
python-pycares security update
-
OESA-2025-1811
python-pycares security update
-
OESA-2025-1812
python-pycares security update
-
OESA-2025-1813
python-pycares security update
-
OESA-2025-1858
python-pycares security update
-
SUSE-SU-2025:03354-1
Security update for python-pycares
-
UBUNTU-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…
-
openSUSE-SU-2025:15324-1
python311-pycares-4.9.0-1.1 on GA media
References
- https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55
- https://github.com/aio-libs/aiodns/releases/tag/v3.5.0
- https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4
- https://github.com/saghul/pycares/releases/tag/v4.9.0
- https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35