ubuntu-cve-2025-48945
Vulnerability from osv_ubuntu
Published
2025-06-20 20:15
Modified
2026-05-20 15:22
Summary
Details
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
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pycares",
"binary_version": "2.1.1-2build2"
},
{
"binary_name": "python3-pycares",
"binary_version": "2.1.1-2build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "pycares",
"purl": "pkg:deb/ubuntu/pycares@2.1.1-2build2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.1.1-2build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pycares",
"binary_version": "3.1.1-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "pycares",
"purl": "pkg:deb/ubuntu/pycares@3.1.1-1build1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.1.1-2build4",
"2.1.1-2build5",
"2.1.1-2.1",
"3.1.0-3",
"3.1.0-4",
"3.1.1-1",
"3.1.1-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pycares",
"binary_version": "4.1.2-2build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "pycares",
"purl": "pkg:deb/ubuntu/pycares@4.1.2-2build1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.1.1-1build3",
"3.1.1-1build5",
"4.1.2-2",
"4.1.2-2build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pycares",
"binary_version": "4.4.0-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "pycares",
"purl": "pkg:deb/ubuntu/pycares@4.4.0-1build2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.3.0-2",
"4.3.0-2build1",
"4.4.0-1",
"4.4.0-1build1",
"4.4.0-1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pycares",
"binary_version": "4.4.0-2build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "pycares",
"purl": "pkg:deb/ubuntu/pycares@4.4.0-2build2?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.0-2build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pycares",
"binary_version": "5.0.1-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "pycares",
"purl": "pkg:deb/ubuntu/pycares@5.0.1-3?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.0-2build2",
"4.4.0-2build3",
"4.9.0-1",
"5.0.0-2",
"5.0.1-2",
"5.0.1-3"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2025-48945",
"modified": "2026-05-20T15:22:53Z",
"published": "2025-06-20T20:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-48945"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-48945"
},
{
"type": "REPORT",
"url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-48945"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…