Skip to main content
VulnerabilityPublished Updated

CVE-2026-16118: xdg xdgmime · Heap-based Buffer Overflow

Affects xdg xdgmimeSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.1 High.

Data as of 1 Dec 2026, 18:37 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (redhat)CVSS 3.17.1
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 1 Dec 2026.

What to do

Affected software

ProductAffectedFixed in
xdgxdgmimeAffected–Fixed in–
Red Hat Enterprise Linux 10glib2Affected–Fixed in–
Red Hat Enterprise Linux 10glib2Affected–Fixed in–
Red Hat Enterprise Linux 10.0 Extended Update Supportglib2Affected–Fixed in–
Red Hat Enterprise Linux 7 Extended Lifecycle Supportglib2Affected–Fixed in–
Red Hat Enterprise Linux 8glib2Affected–Fixed in–

AI-suggested

Until an official fix is available, avoid running applications that perform MIME type detection on untrusted or user-writable XDG data locations. Restrict write permissions to XDG data directories to trusted users only. Monitor the vendor advisory for updates on patches or official mitigations.

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

Community reviews

Loading reviews…