CVE-2025-48945

High

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.

SeverityHigh
CVSS8.2
Exploit probability—
ProductPycares
PublishedJun 20, 2025
First seenJun 20, 2025

How to fix

Update
  • pycares4.9.0 or later

Affected products

ProductAffected versionsFixed in
pycaresPyPIv < 4.9.04.9.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-48945 · Pycares · Dark Radar