Skip to main content
VulnerabilityPublished Updated

CVE-2025-48945: Pycares · c-ares is a C library that performs DNS requests and name resolutions asynchronously

Affects pycaresSource GCVE Database

0
Compare
Authoritative record:CVE-2025-48945· High 8.2

Not known to be exploited · CVSS 8.2 High · fixed in 4.9.0 : patch pycares soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.9.0
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10pycarespkg:deb/ubuntu/pycares?arch=source&distro=stonkingOther threatsAffected
  • =5.0.1-3
Fixed in–
Ubuntu 26.04 LTSpycarespkg:deb/ubuntu/pycares?arch=source&distro=resoluteOther threatsAffected
  • 4.4.0-2build2 – 5.0.1-3
6 affected builds
Fixed in–
Ubuntu 25.10pycarespkg:deb/ubuntu/pycares?arch=source&distro=questingOther threatsAffected
  • =4.4.0-2build2
Fixed in–
Ubuntu 24.04 LTSpycarespkg:deb/ubuntu/pycares?arch=source&distro=nobleOther threatsAffected
  • 4.3.0-2 – 4.4.0-1build2
5 affected builds
Fixed in–
Ubuntu 22.04 LTSpycarespkg:deb/ubuntu/pycares?arch=source&distro=jammyOther threatsAffected
  • 3.1.1-1build3 – 4.1.2-2build1
4 affected builds
Fixed in–
Ubuntu 20.04 LTSpycarespkg:deb/ubuntu/pycares?arch=source&distro=focalOther threatsAffected
  • 2.1.1-2.1 – 3.1.1-1build1
7 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…