Skip to main content
← All vulnerabilities
CVE-2025-48945GHSA-5QPG-RH4J-QP35

pycares has a Use-After-Free Vulnerability

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.9.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • aio-libs aiodns

    fixed in 4.9.0

  • pycaresPyPI

    fixed in 4.9.0

References 5

GitHub · saghul/pycares

GitHub · aio-libs/aiodns