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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48945.json"
}{
"extracted_events": [
{
"range": [
{
"fixed": "f259a6e3650555157af53ac2b39f2ff545321d55"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v3.5.0",
"range": [
{
"fixed": "83533f4d17dd769a5bc0fce6e4c7610b6abde85e"
}
],
"source": "REFERENCES_TAG"
}
]
}
{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "4.9.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "ebfd7d71eb8e74bc1057a361ea79a5906db510d4"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v4.9.0",
"range": [
{
"fixed": "4c761b47fd5116d5bb5cf46c509e07d8a9d0f99a"
}
],
"source": "REFERENCES_TAG"
}
]
}