CVE-2026-16118: Glib2.0 · A flaw was found in xdgmime
Affects glib2.0Source GCVE Database
Not known to be exploited · CVSS 7.1 High · fixed in 2.40.2-0ubuntu1.1+esm8 : patch glib2.0 soon.
Data as of 24 Nov 2026, 20:12 UTC
Thin evidence
One scorer or none| CNA (redhat) | CVSS 3.1 | 7.1 |
|---|
- Patch
- Available – fixed in 2.40.2-0ubuntu1.1+esm8, 2.48.2-0ubuntu4.8+esm6, 2.56.4-0ubuntu0.18.04.9+esm6 +4
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSglib2.0pkg:deb/ubuntu/glib2.0?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSglib2.0pkg:deb/ubuntu/glib2.0?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSglib2.0pkg:deb/ubuntu/glib2.0?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSglib2.0pkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSglib2.0pkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSglib2.0pkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra-legacy/xenialOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-16118 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-16118 (opens in a new tab)
- gitlab.gnome.org/GNOME/glib/-/work_items/3992 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2501732 (opens in a new tab)
- gitlab.freedesktop.org/xdg/xdgmime/-/work_items/41 (opens in a new tab)
- ubuntu.com/security/notices/USN-8794-1 (opens in a new tab)