7.7high
Glib: integer overflow in in g_escape_uri_string()
- Severity
- 7.7high CVSS:3.1 by redhat
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A heap-based buffer overflow problem was found in glib through an incorrect calculation of buffer size in the g_escape_uri_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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| glib | before 2.86.3 | CVE List |
| glib2 | Not specified Not affected: from 0:2.80.4-10.el10_1.12 before *, from 0:2.80.4-4.el10_0.8 before *, from 0:2.56.1-11.el7_9 before *, from 0:2.56.4-168.el8_10 before *, from 0:2.56.4-8.el8_2.4 before *, from 0:2.56.4-10.el8_4.4 before * | CVE List |
| mingw-glib2 | Not specified Not affected: from 0:2.87.0-1.el10 before *, from 0:2.78.6-3.el9 before * | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified Not affected: from 412.86.202602021310-0 before * | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified Not affected: from 413.92.202602240113-0 before *, from 414.92.202602171627-0 before *, from 415.92.202603101737-0 before *, from 416.94.202602101357-0 before *, from 417.94.202602090846-0 before *, from 418.94.202602022246-0 before * | CVE List |
| rhceph/rhceph-8-rhel9 | Not specified Not affected: from 1769512383 before * | CVE List |
| discovery/discovery-server-rhel9 | Not specified Not affected: from 1769104765 before * | CVE List |
| discovery/discovery-ui-rhel9 | Not specified Not affected: from 1769111774 before * | CVE List |
| glib2-main | Not specified Not affected: from 2.88.0-1.1.hum1 before * | CVE List |
| insights-proxy/insights-proxy-container-rhel9 | Not specified Not affected: from 1770740405 before * | CVE List |
| rhui5/cds-rhel9 | Not specified Not affected: from 1770808689 before * | CVE List |
| rhui5/haproxy-rhel9 | Not specified Not affected: from 1770807477 before * | CVE List |
| rhui5/installer-rhel9 | Not specified Not affected: from 1770646925 before * | CVE List |
| rhui5/rhua-rhel9 | Not specified Not affected: from 1770808765 before * | CVE List |
| redhat codeready_linux_builder | 9.0 | NVD |
| redhat codeready_linux_builder_for_ibm_z_systems | 9.0_s390x, 10.0_s390x, 8.0_s390x, 9.4_s390x, 9.6_s390x | NVD |
| redhat codeready_linux_builder_for_power_little_endian | 9.0_ppc64le, 10.0_ppc64le, 8.0_ppc64le, 9.4_ppc64le, 9.6_ppc64le | NVD |
| redhat codeready_linux_builder_for_x86_64 | 9.0, 10.0, 8.0, 9.4, 9.6 | NVD |
| redhat enterprise_linux_for_arm_64 | 9.0, 10.0, 8.0, 9.2, 9.4, 9.6 | NVD |
| redhat enterprise_linux_for_ibm_z_systems | 9.0_s390x, 10.0_s390x, 8.0_s390x, 9.2_s390x, 9.4_s390x, 9.6_s390x | NVD |
| redhat enterprise_linux_for_power_little_endian | 9.0_ppc64le, 10.0_ppc64le, 8.0_ppc64le, 9.2_ppc64le, 9.4_ppc64le, 9.6_ppc64le | NVD |
| redhat enterprise_linux_for_x86_64 | 9.0, 10.0, 8.0, 9.2, 9.4, 9.6, 8.6, 8.8 | NVD |
| redhat codeready_linux_builder_for_arm64 | 10.0, 8.0, 9.6 | NVD |
| redhat enterprise_linux_server_aus | 9.2, 9.4, 9.6, 8.6, 8.4, 8.2 | NVD |
| redhat codeready_linux_builder_for_arm64_eus | 9.4, 10.0 | NVD |
| redhat enterprise_linux_for_x86_64_eus | 9.4, 10.0, 9.6, 8.6, 8.8, 8.4 | NVD |
| redhat enterprise_linux_server_for_power_little_endian | 9.4_ppc64le, 10.0_ppc64le, 9.6_ppc64le, 8.6_ppc64le, 8.8_ppc64le | NVD |
| redhat enterprise_linux_server_for_power_little_endian_eus | 9.4_ppc64le | NVD |
| redhat codeready_linux_builder_for_ibm_z_systems_eus | 10.0_s390x | NVD |
| redhat codeready_linux_builder_for_power_little_endian_eus | 10.0_ppc64le | NVD |
| redhat codeready_linux_builder_for_x86_64_eus | 10.0 | NVD |
| redhat enterprise_linux_for_arm_64_eus | 10.0 | NVD |
| redhat enterprise_linux_for_ibm_z_systems_eus | 10.0_s390x | NVD |
| redhat enterprise_linux_for_power_little_endian_eus | 10.0_ppc64le, 9.6_ppc64le | NVD |
| redhat enterprise_linux_server_tus | 8.6, 8.8 | NVD |
| redhat ceph_storage | 8.0 | NVD |
| redhat discovery | 2.0 | NVD |
| gnome glib | before 2.86.3 | NVD |
| redhat openshift_container_platform | 4.12, 4.16, 4.17, 4.18, 4.19 | NVD |
| redhat openshift_container_platform_for_arm64 | 4.12, 4.16, 4.17, 4.18, 4.19 | NVD |
| redhat openshift_container_platform_for_ibm_z | 4.12, 4.16, 4.17, 4.18, 4.19 | NVD |
| redhat openshift_container_platform_for_linuxone | 4.12, 4.16, 4.17, 4.18, 4.19 | NVD |
| redhat openshift_container_platform_for_power | 4.12, 4.16, 4.17, 4.18, 4.19 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A heap-based buffer overflow problem was found in glib through an incorrect calculation of buffer size in the g_escape_uri_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.
NVD (es)
Un problema de desbordamiento de búfer basado en montículo fue encontrado en glib debido a un cálculo incorrecto del tamaño del búfer en la función g_escape_uri_string(). Si la cadena a escapar contiene un número muy grande de caracteres inaceptables (que necesitarían ser escapados), el cálculo de la longitud de la cadena escapada podría desbordarse, lo que llevaría a una posible escritura fuera del final de la cadena recién asignada.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-13601 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2025-13601 changed 2026-11-23 | Public domain |