{"answers":{"affected":"2 open source packages ship an affected version, including pycares.","exploited":"There is no known exploitation of CVE-2025-48945 in the wild and no public exploit code.","fix":"Upgrade pycares to 4.9.0 or later.","what":"CVE-2025-48945 is a high-severity use after free vulnerability in aio-libs aiodns, published on 20 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-48945 and fix it if it is affected.\n\nWhat it is: CVE-2025-48945 is a high-severity use after free vulnerability in aio-libs aiodns, published on 20 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-48945 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pycares (PyPI): affected all versions; fixed in 4.9.0\n- pycares (PyPI): affected all versions; fixed in 4.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-48945/ (Markdown: https://insights.sbomify.com/CVE-2025-48945/index.md)","id":"CVE-2025-48945","markdown":"https://insights.sbomify.com/CVE-2025-48945/index.md","name":"CVE-2025-48945","record":{"aliases":["AZL-64307","AZL-67074","DEBIAN-CVE-2025-48945","GHSA-5qpg-rh4j-qp35","OESA-2025-1810","OESA-2025-1811","OESA-2025-1812","OESA-2025-1813","OESA-2025-1858","SUSE-SU-2025:03354-1","UBUNTU-CVE-2025-48945","openSUSE-SU-2025:15324-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python DNS library","requires_auth":"none","summary":"An attacker can cause a denial of service by triggering a use-after-free error in pycares when a channel is garbage collected during pending DNS queries.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","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","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"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.","ecosystems":["PyPI","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP7","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"pycares has a Use-After-Free Vulnerability","id":"CVE-2025-48945","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"use_after_free","year":"2025"},"n_packages":14,"n_references":6,"next":{"headline":"liboqs affected by theoretical design flaw in HQC","id":"CVE-2025-48946"},"packages":[{"ecosystem":"PyPI","fixed":["4.9.0"],"introduced":["0"],"last_affected":[],"package":"pycares","purl":null,"source":"GHSA-5qpg-rh4j-qp35"},{"ecosystem":"PyPI","fixed":["4.9.0"],"introduced":["0"],"last_affected":[],"package":"pycares","purl":"pkg:pypi/pycares","source":"GHSA-5qpg-rh4j-qp35"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP7","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/suse/python-pycares\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["4.10.0-150400.9.8.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/opensuse/python-pycares\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:03354-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.9.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-pycares","purl":"pkg:rpm/opensuse/python-pycares\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15324-1"}],"prev":{"headline":"vLLM Tool Schema allows DoS via Malformed pattern and type Fields","id":"CVE-2025-48944"},"products":["aiodns"],"published":"2025-06-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-20","vendors":["aio-libs"]},"summary":"An attacker can cause a denial of service by triggering a use-after-free error in pycares when a channel is garbage collected during pending DNS queries.","url":"https://insights.sbomify.com/CVE-2025-48945/"}