CVE catalog

CVE-2025-48945

pycares: CVE-2025-48945

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.48% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpycaressid5.0.1-3fixed
Debianpycaresforky5.0.1-3fixed
Debianpycarestrixie4.4.0-2vulnerable
Debianpycaresbookworm4.3.0-2vulnerable
PyPIpycaresNot reported4.9.0fixed
Opensusepython-pycarestumbleweed4.9.0-1.1fixed
Susepython-pycareslinux enterprise module for python 3 15 sp64.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise module for python 3 15 sp74.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise high performance computing 15 sp4-espos4.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise high performance computing 15 sp4-ltss4.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise high performance computing 15 sp5-espos4.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise high performance computing 15 sp5-ltss4.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise server 15 sp4-ltss4.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise server 15 sp5-ltss4.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise server for sap applications 15 sp44.10.0-150400.9.8.1fixed
Susepython-pycareslinux enterprise server for sap applications 15 sp54.10.0-150400.9.8.1fixed
Opensusepython-pycaresleap 15.64.10.0-150400.9.8.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpycaressourcesid4.9.0-1not yet assignedNot reported[1109377]
Debianpycaressourceforky4.9.0-1not yet assignedNot reported[1109377]
Debianpycaressourcetrixie(unfixed)not yet assignedNot reported[1109377]
Debianpycaressourcebookworm(unfixed)not yet assignedNot reported[1109377]
PyPIpycaresPyPINot reported4.9.0Not reportedGHSA-5QPG-RH4J-QP35Not reported
Opensusepython-pycaresrpmtumbleweed4.9.0-1.1Not reportedOPENSUSE-SU-2025:15324-1Not reported
Susepython-pycaresrpmlinux enterprise module for python 3 15 sp64.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise module for python 3 15 sp74.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise high performance computing 15 sp4-espos4.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise high performance computing 15 sp4-ltss4.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise high performance computing 15 sp5-espos4.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise high performance computing 15 sp5-ltss4.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise server 15 sp4-ltss4.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise server 15 sp5-ltss4.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise server for sap applications 15 sp44.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Susepython-pycaresrpmlinux enterprise server for sap applications 15 sp54.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported
Opensusepython-pycaresrpmleap 15.64.10.0-150400.9.8.1Not reportedSUSE-SU-2025:03354-1Not reported

[Debian bug #1109377]

Notes

[trixie] pycares: Minor issue, too intrusive to backport [bookworm] pycares: Minor issue, too intrusive to backport

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-pycares]Affected

    Source package: [pycares]

    Details (2)
    • 4.3.0-2 · amd64 · bookworm

      Affected

      dsa · pycares · debian · bookworm; dsa · pycares · debian · 12

    • 4.3.0-2 · arm64 · bookworm

      Affected

      dsa · pycares · debian · bookworm; dsa · pycares · debian · 12

  • Source package: [pycares]

    Details (2)
    • 4.3.0-2 · all · bookworm

      Affected

      dsa · pycares · debian · bookworm; dsa · pycares · debian · 12

    • 4.3.0-2 · all · bookworm

      Affected

      dsa · pycares · debian · bookworm; dsa · pycares · debian · 12

[Debian 13 (Trixie)]

  • [python3-pycares]Affected

    Source package: [pycares]

    Details (2)
    • 4.4.0-2+b3 · amd64 · trixie

      Affected

      dsa · pycares · debian · 13

    • 4.4.0-2+b4 · arm64 · trixie

      Affected

      dsa · pycares · debian · 13

  • Source package: [pycares]

    Details (2)
    • 4.4.0-2 · all · trixie

      Affected

      dsa · pycares · debian · 13

    • 4.4.0-2 · all · trixie

      Affected

      dsa · pycares · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-pycares]

    Details (1)
    • 5.0.1-1.5 · x86_64 · tumbleweed

      Unknown · Fixed: 4.9.0-1.1

      Version impact unknown

      dsa · python-pycares · opensuse · tumbleweed

  • Source package: [python-pycares]

    Details (1)
    • 5.0.1-1.5 · x86_64 · tumbleweed

      Unknown · Fixed: 4.9.0-1.1

      Version impact unknown

      dsa · python-pycares · opensuse · tumbleweed

Observed:

References