ADVISORIES

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

    CVE-2025-48945 Azure Linux Updated 21 April 2026
  • AZL-67074

    CVE-2025-48945 affecting package python3-pycares 4.5.0-1

    CVE-2025-48945 Azure Linux Updated 23 November 2026
  • 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…

    CVE-2025-48945 Debian Updated 1 September 2026
  • GHSA-5qpg-rh4j-qp35

    pycares has a Use-After-Free Vulnerability

    Moderate CVE-2025-48945 PyPI Updated 10 September 2026
  • OESA-2025-1810

    python-pycares security update

    Medium CVE-2025-48945 openEuler Updated 18 August 2026
  • OESA-2025-1811

    python-pycares security update

    Medium CVE-2025-48945 openEuler Updated 18 August 2026
  • OESA-2025-1812

    python-pycares security update

    Medium CVE-2025-48945 openEuler Updated 18 August 2026
  • OESA-2025-1813

    python-pycares security update

    Medium CVE-2025-48945 openEuler Updated 18 August 2026
  • OESA-2025-1858

    python-pycares security update

    Medium CVE-2025-48945 openEuler Updated 18 August 2026
  • SUSE-SU-2025:03354-1

    Security update for python-pycares

    CVE-2025-48945 SUSEopenSUSE Updated 23 March 2026
  • 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…

    CVE-2025-48945 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2025:15324-1

    python311-pycares-4.9.0-1.1 on GA media

    CVE-2025-48945 openSUSE Updated 23 March 2026

References