Back to CVE records
High 7.1Published Jul 17, 2026

CVE-2026-16118Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in xdgmimemagic.c

Updated under an hour ago ()

Does this affect you?

It affects xdgmime and 9 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
7.1 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Weakness (CWE)
CWE-122
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
redhat
NVD analysis
Awaiting Analysis
Record last updated
Oct 14, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
xdg xdgmime
xdg:xdgmime (from the name)
All versions
CNA record
from 0:2.80.4-12.el10_2.22 not affected
CNA record
from 0:2.80.4-4.el10_0.18 not affected
CNA record
from 0:2.68.4-7.el9_2.8 not affected
CNA record
from 0:2.68.4-16.el9_6.8 not affected
CNA record
from 1791371080 not affected
CNA record
Red Hat Red Hat AI Inference Server 3.2
redhat:ai_inference_server
from 1790621714 not affected
CNA record
Red Hat Red Hat Cost Management On-Premise 1
redhat:cost_management_on_premise
from 1791460851 not affected
CNA record
from 1790276886 not affected
CNA record
from 1789479916 not affected
CNA record

References

  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.