cve.bz

CVE-2025-48945 aio-libs aiodns: Use After Free

8.2 highEPSS 0.5%Fix available

High (8.2) in aio-libs aiodns. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in pycares 4.9.0.

On this page
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.

Severity

CVSS 4.0

8.2 high
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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-06-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-48945 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-48945?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-48945?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-48945 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
aio-libs aiodns< 4.9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5qpg-rh4j-qp35PyPIpycares<4.9.04.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pycaresno fix listedDEBIAN-CVE-2025-48945
Debian14pycares4.9.0-1DEBIAN-CVE-2025-48945
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morepycaresno fix listedUBUNTU-CVE-2025-48945
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morepython-pycares4.10.0-150400.9.8.1SUSE-SU-2025:03354-1
openSUSELeap 15.6python-pycares4.10.0-150400.9.8.1SUSE-SU-2025:03354-1
openSUSETumbleweedpython-pycares4.9.0-1.1openSUSE-SU-2025:15324-1
Azure Linux2python-pycaresno fix listedAZL-64307
Azure Linux3python3-pycaresno fix listedAZL-67074

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

To mitigate this flaw avoid creating Channel objects per-request.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Ansible Automation Platform 2python3.11-pycaresNot affected
Red Hat Ansible Automation Platform 2python3x-pycaresNot affected
Red Hat Ansible Automation Platform 2python-pycaresNot affected
Red Hat Satellite 6python-pycaresNot affected
Red Hat Satellite 6satellite-capsule:el8/python-pycaresNot affected
Red Hat Satellite 6satellite:el8/python-pycaresNot affected
Red Hat Update Infrastructure 4 for Cloud Providerspython-pycaresNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-48945.

References

Check your stackJSON