{
  "id": "CVE-2025-48945",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-48945",
  "published_at": "2025-06-20T19:14:27.403Z",
  "title": "pycares has a Use-After-Free Vulnerability",
  "vendor": "aio-libs",
  "product": "aiodns",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-416",
  "cvss_by_source": {
    "cna": 8.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "aio-libs",
        "product": "aiodns",
        "ranges": [
          "\u003c 4.9.0"
        ],
        "fixed_in": [
          "4.9.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade aiodns to 4.9.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/aio-libs/aiodns/releases/tag/v3.5.0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/saghul/pycares/releases/tag/v4.9.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
