Vulnerability · Published Jun 30, 2026 · Assigned by redhat

CVE-2026-58012Glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()

Medium 6.5

In plain English

A medium-severity security flaw in GLib from GNOME. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 57.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A flaw was found in GLib. A buffer over-read can occur in the g_regex_replace function when used with the `G_REGEX_RAW` compile flag and case-change replacement escapes because the string_append function processes matched substrings using UTF-8 functions that assume valid UTF-8 input, even when the string is treated as raw bytes. This vulnerability can cause a minor information disclosure of 1-5 bytes and a denial of service when the buffer over-read crosses a page boundary.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10glib22.80.4-12.el10_2.21ALSA-2026:57015
AlmaLinux:8glib22.56.4-177.el8_10ALSA-2026:61766
AlmaLinux:9glib22.68.4-19.el9_8.9ALSA-2026:55440
AlmaLinux:10glib2-devel2.80.4-12.el10_2.21ALSA-2026:57015
AlmaLinux:8glib2-devel2.56.4-177.el8_10ALSA-2026:61766
AlmaLinux:9glib2-devel2.68.4-19.el9_8.9ALSA-2026:55440
AlmaLinux:10glib2-doc2.80.4-12.el10_2.21ALSA-2026:57015
AlmaLinux:8glib2-doc2.56.4-177.el8_10ALSA-2026:61766
AlmaLinux:9glib2-doc2.68.4-19.el9_8.9ALSA-2026:55440
AlmaLinux:8glib2-fam2.56.4-177.el8_10ALSA-2026:61766
AlmaLinux:10glib2-static2.80.4-12.el10_2.21ALSA-2026:57015
AlmaLinux:8glib2-static2.56.4-177.el8_10ALSA-2026:61766
AlmaLinux:9glib2-static2.68.4-19.el9_8.9ALSA-2026:55440
AlmaLinux:10glib2-tests2.80.4-12.el10_2.21ALSA-2026:57015
AlmaLinux:8glib2-tests2.56.4-177.el8_10ALSA-2026:61766
AlmaLinux:9glib2-tests2.68.4-19.el9_8.9ALSA-2026:55440
AlmaLinux:8mingw32-glib22.70.1-9.el8_10ALSA-2026:49512
AlmaLinux:8mingw32-glib2-static2.70.1-9.el8_10ALSA-2026:49512
AlmaLinux:8mingw64-glib22.70.1-9.el8_10ALSA-2026:49512
AlmaLinux:8mingw64-glib2-static2.70.1-9.el8_10ALSA-2026:49512
Debian:12glib2.0no fix listedDEBIAN-CVE-2026-58012
Debian:13glib2.02.84.4-3~deb13u4DEBIAN-CVE-2026-58012
Debian:14glib2.02.88.1-2DEBIAN-CVE-2026-58012
Rocky Linux:10glib20:2.80.4-12.el10_2.21RLSA-2026:57015
Rocky Linux:8glib20:2.56.4-177.el8_10RLSA-2026:61766
Rocky Linux:9glib20:2.68.4-19.el9_8.9RLSA-2026:55440
Rocky Linux:8mingw-glib20:2.70.1-9.el8_10RLSA-2026:49512
Ubuntu:22.04:LTSglib2.02.72.4-0ubuntu2.10UBUNTU-CVE-2026-58012
Ubuntu:22.04:LTSglib2.02.72.4-0ubuntu2.10USN-8794-1
Ubuntu:24.04:LTSglib2.02.80.0-6ubuntu3.9UBUNTU-CVE-2026-58012
Ubuntu:24.04:LTSglib2.02.80.0-6ubuntu3.9USN-8794-1
Ubuntu:25.10glib2.0no fix listedUBUNTU-CVE-2026-58012
Ubuntu:26.04:LTSglib2.02.88.0-1ubuntu0.1USN-8794-1
Ubuntu:26.04:LTSglib2.02.88.0-1ubuntu0.1UBUNTU-CVE-2026-58012

Affected products (as reported)

VendorProductVersions
GNOME GLib 0 – before 2.86.50 – before 2.88.1
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.19 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.19 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.19 see references

Weakness: CWE-126 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

References