CVE-2025-48945 (GCVE-0-2025-48945)

Vulnerability from cvelistv5 – Published: 2025-06-20 19:14 – Updated: 2025-06-20 20:06
VLAI
Title
pycares has a Use-After-Free Vulnerability
Summary
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.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-06-20 20:05 UTC
CWE
Assigner
GitHub_M CNA under the mitre root
CNA scorecard C 72/100 over 7552 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
aio-libs aiodns Affected: < 4.9.0
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-48945",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-06-20T20:05:50.595661Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-06-20T20:06:23.612Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "aiodns",
          "vendor": "aio-libs",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 4.9.0"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 8.2,
            "baseSeverity": "HIGH",
            "privilegesRequired": "NONE",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "vectorString": "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",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "NONE"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-416",
              "description": "CWE-416: Use After Free",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-20T19:14:27.403Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
        },
        {
          "name": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
        },
        {
          "name": "https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55"
        },
        {
          "name": "https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4"
        },
        {
          "name": "https://github.com/aio-libs/aiodns/releases/tag/v3.5.0",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aio-libs/aiodns/releases/tag/v3.5.0"
        },
        {
          "name": "https://github.com/saghul/pycares/releases/tag/v4.9.0",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/saghul/pycares/releases/tag/v4.9.0"
        }
      ],
      "source": {
        "advisory": "GHSA-5qpg-rh4j-qp35",
        "discovery": "UNKNOWN"
      },
      "title": "pycares has a Use-After-Free Vulnerability"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2025-48945",
    "datePublished": "2025-06-20T19:14:27.403Z",
    "dateReserved": "2025-05-28T18:49:07.582Z",
    "dateUpdated": "2025-06-20T20:06:23.612Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-48945",
      "date": "2026-10-11",
      "epss": "0.00484",
      "percentile": "0.3988"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "product": "aiodns",
                "vendor": "aio-libs",
                "versions": [
                  {
                    "status": "affected",
                    "version": "\u003c 4.9.0"
                  }
                ]
              }
            ],
            "source": "security-advisories@github.com"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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."
          },
          {
            "lang": "es",
            "value": "Pycares es un m\u00f3dulo de Python que proporciona una interfaz para c-ares. C-ares es una librer\u00eda de C que realiza solicitudes DNS y resoluciones de nombres de forma as\u00edncrona. En versiones anteriores a la 4.9.0, Pycares era vulnerable a una condici\u00f3n de use-after-free que se produce cuando un objeto de canal se recolecta como basura mientras las consultas DNS a\u00fan est\u00e1n pendientes. Esto provoca un error fatal de Python y un fallo del int\u00e9rprete. Esta vulnerabilidad se ha corregido en Pycares 4.9.0 mediante la implementaci\u00f3n de un mecanismo seguro de destrucci\u00f3n de canales."
          }
        ],
        "id": "CVE-2025-48945",
        "lastModified": "2026-06-17T09:30:31.813",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "security-advisories@github.com",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2025-48945",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-06-20T20:05:50.595661Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2025-06-20T20:15:33.570",
        "references": [
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/aio-libs/aiodns/releases/tag/v3.5.0"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/saghul/pycares/releases/tag/v4.9.0"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
          }
        ],
        "sourceIdentifier": "security-advisories@github.com",
        "vulnStatus": "Deferred",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-416"
              }
            ],
            "source": "security-advisories@github.com",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-06-28T07:03:36+00:00",
      "cve": "CVE-2025-48945",
      "id": "CVE-2025-48945",
      "initial_release_date": "2025-06-16T16:09:47+00:00",
      "product_status:known_not_affected": "11",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "pycares: pycares Channel Use-After-Free",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-48945.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-10-10T16:30:33Z",
      "cve": "CVE-2025-48945",
      "id": "CVE-2025-48945",
      "initial_release_date": "2025-06-17T23:38:38Z",
      "product_status:recommended": "27",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-48945",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-48945.json",
      "version": "18"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2025-48945",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-06-20T20:05:50.595661Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-06-20T20:06:00.708Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "aiodns",
              "vendor": "aio-libs",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 4.9.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "vectorString": "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",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416: Use After Free",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2025-06-20T19:14:27.403Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
            },
            {
              "name": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/saghul/pycares/security/advisories/GHSA-5qpg-rh4j-qp35"
            },
            {
              "name": "https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/aio-libs/aiodns/commit/f259a6e3650555157af53ac2b39f2ff545321d55"
            },
            {
              "name": "https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/saghul/pycares/commit/ebfd7d71eb8e74bc1057a361ea79a5906db510d4"
            },
            {
              "name": "https://github.com/aio-libs/aiodns/releases/tag/v3.5.0",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/aio-libs/aiodns/releases/tag/v3.5.0"
            },
            {
              "name": "https://github.com/saghul/pycares/releases/tag/v4.9.0",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/saghul/pycares/releases/tag/v4.9.0"
            }
          ],
          "source": {
            "advisory": "GHSA-5qpg-rh4j-qp35",
            "discovery": "UNKNOWN"
          },
          "title": "pycares has a Use-After-Free Vulnerability"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2025-48945",
        "datePublished": "2025-06-20T19:14:27.403Z",
        "dateReserved": "2025-05-28T18:49:07.582Z",
        "dateUpdated": "2025-06-20T20:06:23.612Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…