A heap-based buffer overflow problem was found in glib through an incorrect calculation of buffer size in the gescapeuri_string() function. If the string to escape contains a very large number of unacceptable characters (which would need escaping), the calculation of the length of the escaped string could overflow, leading to a potential write off the end of the newly allocated string.
{
"sources": [
{
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-13601",
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-13601",
"modified": "2026-04-19T20:16:19.257Z",
"id": "CVE-2025-13601",
"imported": "2026-05-07T17:46:41.531Z",
"published": "2025-11-26T15:15:51.723Z"
}
],
"license": "CC-BY-4.0"
}