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.
Metrics
Affected Vendors & Products
References
History
Fri, 20 Jun 2025 21:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Fri, 20 Jun 2025 19:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A flaw was found in pycares. A use-after-free condition arises when a Channel object is garbage collected while associated DNS queries remain pending, leading to a fatal Python error and interpreter crash. This vulnerability allows a local attacker to trigger the crash by initiating DNS queries and then manipulating the object lifetime. This condition causes a denial of service resulting from interpreter termination. | 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. |
Title | pycares: pycares Channel Use-After-Free | pycares has a Use-After-Free Vulnerability |
References |
| |
Metrics |
cvssV4_0
|
Wed, 18 Jun 2025 16:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | No description is available for this CVE. | A flaw was found in pycares. A use-after-free condition arises when a Channel object is garbage collected while associated DNS queries remain pending, leading to a fatal Python error and interpreter crash. This vulnerability allows a local attacker to trigger the crash by initiating DNS queries and then manipulating the object lifetime. This condition causes a denial of service resulting from interpreter termination. |
Tue, 17 Jun 2025 15:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | No description is available for this CVE. | |
Title | pycares: pycares Channel Use-After-Free | |
Weaknesses | CWE-416 | |
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|

Status: PUBLISHED
Assigner: GitHub_M
Published: 2025-06-20T19:14:27.403Z
Updated: 2025-06-20T20:06:23.612Z
Reserved: 2025-05-28T18:49:07.582Z
Link: CVE-2025-48945

Updated: 2025-06-20T20:06:00.708Z

Status : Awaiting Analysis
Published: 2025-06-20T20:15:33.570
Modified: 2025-06-23T20:16:21.633
Link: CVE-2025-48945
