Skip to content
OpenAdvisories
High · 8.2 CVE-2025-48945 EUVD-2025-28273GHSA-5qpg-rh4j-qp35

pycares has a Use-After-Free Vulnerability

Published Jun 20, 2025 · Updated Jun 20, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
aio-libs aiodns < 4.9.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pycares 4.9.0-1 —
Debian 13 pycares No fix yet —
Debian 12 pycares No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pycares No fix yet —
Ubuntu 26.04 LTS pycares No fix yet —
Ubuntu 25.10 pycares No fix yet —
Ubuntu 24.04 LTS pycares No fix yet —
Ubuntu 22.04 LTS pycares No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pycares No fix yet —
Ubuntu 18.04 LTS pycares No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP5 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
SLES 15 SP4 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
SLES 3 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
SLES for SAP 15 SP4 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
SLE HPC 15 SP5 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
SLE HPC 15 SP4 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pycares 4.9.0-1.1 openSUSE-SU-2025:15324-1
openSUSE Leap 15.6 python-pycares 4.10.0-150400.9.8.1 SUSE-SU-2025:03354-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python3-pycares No fix yet —
Azure Linux 2 (CBL-Mariner) python-pycares No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pycares < 4.9.0 4.9.0 GHSA-5qpg-rh4j-qp35

Advisories 2

References