Skip to content

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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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