CVE-2026-16118: glib2.0 Heap-based Buffer Overflow
Vulnerability summary
CVE-2026-16118 is a high (CVSS 7.1) Heap-based Buffer Overflow vulnerability in glib2.0. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 18.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 17-07-2026PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
Description
A flaw was found in xdgmime. A heap-based buffer overflow can be triggered in _xdg_mime_magic_parse_magic_line() in the xdgmimemagic.c file on little-endian systems when an attacker-controlled MIME magic file in a user-writable XDG data location (e.g., in the $XDG_DATA_HOME/mime/magic path) is parsed by an application performing MIME type detection (e.g., via g_content_type_guess()). When performing byte-swap, incorrect pointer arithmetic on the write side causes an out-of-bounds write of 2 bytes, resulting in an application crash or memory corruption.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- NVDNIST7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
19%
Versus all other CVEs
30-day change
+0.03 pp
From 0.24% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat11 products
- glib2< 0:2.80.4-12.el10_2.22 | < 0:2.68.4-19.el9_8.10 | < 0:2.56.4-178.el8_10 | < 0:2.68.4-14.el9_4.9 | < 0:2.68.4-16.el9_6.8 | < 0:2.80.4-4.el10_0.18 | < 0:2.68.4-7.el9_2.8
- glib2-debuginfo< 0:2.80.4-12.el10_2.22 | < 0:2.68.4-19.el9_8.10 | < 0:2.56.4-178.el8_10 | < 0:2.68.4-14.el9_4.9 | < 0:2.68.4-16.el9_6.8 | < 0:2.80.4-4.el10_0.18 | < 0:2.68.4-7.el9_2.8
- glib2-debugsource< 0:2.80.4-12.el10_2.22 | < 0:2.68.4-19.el9_8.10 | < 0:2.56.4-178.el8_10 | < 0:2.68.4-14.el9_4.9 | < 0:2.68.4-16.el9_6.8 | < 0:2.80.4-4.el10_0.18 | < 0:2.68.4-7.el9_2.8
- glib2-devel< 0:2.80.4-12.el10_2.22 | < 0:2.68.4-19.el9_8.10 | < 0:2.56.4-178.el8_10 | < 0:2.68.4-14.el9_4.9 | < 0:2.68.4-16.el9_6.8 | < 0:2.80.4-4.el10_0.18 | < 0:2.68.4-7.el9_2.8
- glib2-devel-debuginfo< 0:2.80.4-12.el10_2.22 | < 0:2.68.4-19.el9_8.10 | < 0:2.56.4-178.el8_10 | < 0:2.68.4-14.el9_4.9 | < 0:2.68.4-16.el9_6.8 | < 0:2.80.4-4.el10_0.18 | < 0:2.68.4-7.el9_2.8
Debian1 product
- glib2.0All versions (No fix recorded) | < 2.84.4-3~deb13u5 | < 2.88.3-3
Ubuntu1 product
- glib2.0< 2.40.2-0ubuntu1.1+esm8 | < 2.48.2-0ubuntu4.8+esm6 | < 2.56.4-0ubuntu0.18.04.9+esm6 | < 2.64.6-1~ubuntu20.04.9+esm2 | < 2.72.4-0ubuntu2.10 | < 2.80.0-6ubuntu3.9 | < 2.88.0-1ubuntu0.1
3 vendors · 13 products