CVE-2026-16118: xdgmime: heap overflow in magic file parsing
HIGHCISA: TRACK*CVE-2026-16118 is a heap-based buffer overflow in xdgmime's MIME magic file parser, triggered when an application performing MIME detection (for example via g_content_type_guess()) loads an attacker-planted magic file from a user-writable XDG data directory. It is a general-purpose library flaw and has no AI-specific attack surface, but it ships in glib2, webkitgtk and Red Hat AI base images (rhai/*, rhaiis/vllm-*), so AI containers built on RHEL 9 inherit it. Risk is moderate: CVSS 7.1 with local access and user interaction required, an EPSS of 0.28% (82nd percentile), no public exploit, no Nuclei template, no KEV listing, and CISA SSVC set to TRACK*. An attacker needs a prior foothold to write into the XDG data path, so this is a post-compromise memory-corruption primitive rather than an initial-access vector. Apply the Red Hat errata (RHSA-2026:64799 and the related advisories), rebuild AI images from patched base layers, and restrict write access to XDG data directories in shared or multi-tenant environments.
What is the risk?
Medium overall. Exploitability is limited by local access, the need for user interaction, and the need to write into $XDG_DATA_HOME/mime/magic. Impact is high for integrity and availability (a 2-byte out-of-bounds heap write causing a crash or memory corruption), with no confidentiality impact in the CVSS vector. EPSS is low (0.00277), there is no known exploit, and the CVE is not in KEV. Exposure for AI/ML systems is indirect: inference containers (vLLM on RHEL AI), notebook hosts and desktop AI tooling that link glib2 or webkitgtk are affected only if they parse MIME data from user-writable locations.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| vLLM | pip | — | No patch |
| vLLM | pip | — | No patch |
| cert-manager/cert-manager-istio-csr-rhel9 | — | — | No patch |
| cert-manager/cert-manager-operator-rhel9 | — | — | No patch |
| cert-manager/cert-manager-trust-manager-rhel9 | — | — | No patch |
| cert-manager/jetstack-cert-manager-acmesolver-rhel9 | — | — | No patch |
| cert-manager/jetstack-cert-manager-rhel9 | — | — | No patch |
| glib2 | — | — | No patch |
| rhai/base-image-cpu-rhel9 | — | — | No patch |
| rhai/base-image-cuda-rhel9 | — | — | No patch |
| rhai/base-image-rocm-rhel9 | — | — | No patch |
| rhai/base-image-spyre-rhel9 | — | — | No patch |
| rhai/base-image-tpu-rhel9 | — | — | No patch |
| rhaiis/model-opt-cuda-rhel9 | — | — | No patch |
| rhui5/cds-kubernetes-rhel9 | — | — | No patch |
| rhui5/cds-rhel9 | — | — | No patch |
| rhui5/haproxy-rhel9 | — | — | No patch |
| rhui5/installer-rhel9 | — | — | No patch |
| rhui5/rhua-rhel9 | — | — | No patch |
| webkit2gtk3 | — | — | No patch |
| webkitgtk4 | — | — | No patch |
| xdgmime | — | — | No patch |
How severe is it?
What is the attack surface?
What should I do?
1 step1) Install the fixed glib2, webkit2gtk3 and webkitgtk4 packages and the updated container images listed in the Red Hat errata (RHSA-2026:64799, 64800, 66451, 67956, 70636, 71403-71405, 72394, 72395). 2) Rebuild and redeploy AI/ML containers (rhai/base-image-*, rhaiis/vllm-*) from the patched base images and scan registries for stale layers. 3) Workaround: make $XDG_DATA_HOME/mime and /usr/share/mime read-only or root-owned for service accounts, and run inference workloads with read-only root filesystems and ephemeral home directories. 4) Detection: monitor for unexpected creation or modification of files under */mime/magic, and for crashes (SIGSEGV, SIGABRT, heap-corruption messages) in processes using glib content-type guessing.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-16118?
CVE-2026-16118 is a heap-based buffer overflow in xdgmime's MIME magic file parser, triggered when an application performing MIME detection (for example via g_content_type_guess()) loads an attacker-planted magic file from a user-writable XDG data directory. It is a general-purpose library flaw and has no AI-specific attack surface, but it ships in glib2, webkitgtk and Red Hat AI base images (rhai/*, rhaiis/vllm-*), so AI containers built on RHEL 9 inherit it. Risk is moderate: CVSS 7.1 with local access and user interaction required, an EPSS of 0.28% (82nd percentile), no public exploit, no Nuclei template, no KEV listing, and CISA SSVC set to TRACK*. An attacker needs a prior foothold to write into the XDG data path, so this is a post-compromise memory-corruption primitive rather than an initial-access vector. Apply the Red Hat errata (RHSA-2026:64799 and the related advisories), rebuild AI images from patched base layers, and restrict write access to XDG data directories in shared or multi-tenant environments.
Is CVE-2026-16118 actively exploited?
No confirmed active exploitation of CVE-2026-16118 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-16118?
1) Install the fixed glib2, webkit2gtk3 and webkitgtk4 packages and the updated container images listed in the Red Hat errata (RHSA-2026:64799, 64800, 66451, 67956, 70636, 71403-71405, 72394, 72395). 2) Rebuild and redeploy AI/ML containers (rhai/base-image-*, rhaiis/vllm-*) from the patched base images and scan registries for stale layers. 3) Workaround: make $XDG_DATA_HOME/mime and /usr/share/mime read-only or root-owned for service accounts, and run inference workloads with read-only root filesystems and ephemeral home directories. 4) Detection: monitor for unexpected creation or modification of files under */mime/magic, and for crashes (SIGSEGV, SIGABRT, heap-corruption messages) in processes using glib content-type guessing.
What systems are affected by CVE-2026-16118?
This vulnerability affects the following AI/ML architecture patterns: model serving, containerized inference, notebook environments, developer workstations.
What is the CVSS score for CVE-2026-16118?
CVE-2026-16118 has a CVSS v3.1 base score of 7.1 (HIGH). The EPSS exploitation probability is 0.28%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.001AI SoftwareAML.T0011User ExecutionCompliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker with limited local access to a shared GPU or notebook host (for example through a compromised low-privilege account or a malicious uploaded artifact that writes to the user's home) plants a crafted $XDG_DATA_HOME/mime/magic file with a malformed byte-swap entry. When a user or service later opens a file through an application that calls g_content_type_guess(), the parser performs a 2-byte out-of-bounds heap write on little-endian hardware. The result is a process crash that disrupts a notebook or tooling session, or heap corruption that a more capable attacker could try to turn into code execution in the user's context.
Weaknesses (CWE)
CWE-122 — Heap-based Buffer Overflow: The product writes past the end of a buffer that was allocated on the heap.
- Pre-design: Use a language or compiler that performs automatic bounds checking.
- [Architecture and Design] Use an abstraction library to abstract away risky APIs. Not a complete solution.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:HReferences
- access.redhat.com/errata/RHSA-2026:64799vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:64800vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:66451vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:67956vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:70636vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:71403vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:71404vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:71405vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72394vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72395vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72399vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72470vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72475vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72476vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:72502vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73859vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73909vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73929vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73930vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73959vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73960vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73961vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:73962vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74359vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74360vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74361vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74362vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74363vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74364vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74365vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74450vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74458vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74459vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74460vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74461vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74462vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74463vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74674vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74677vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74678vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74679vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74681vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74683vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74685vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74687vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74688vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:74771vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75652vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75654vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75655vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75657vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75658vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75659vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:75660vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:76042vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:79357vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:80756vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:81127vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82059vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82061vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82066vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82304vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82322vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82336vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82347vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82354vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82368vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82371vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82372vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82415vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82857vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:82888vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:92449vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:92452vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:98452vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:98557vendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:99864vendor-advisoryx_refsource_REDHAT
- access.redhat.com/security/cve/CVE-2026-16118vdb-entryx_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgiissue-trackingx_refsource_REDHAT
- gitlab.freedesktop.org/xdg/xdgmime/-/work_items/41
Timeline
Related Vulnerabilities
CVE-2026-6173210.0Decepticon: ChatML token injection yields sandbox RCE
Same package: vllmCVE-2024-110419.8vllm: RCE via unsafe pickle deserialization in MessageQueue
Same package: vllmCVE-2026-259609.8vllm: SSRF allows internal network access
Same package: vllmCVE-2025-472779.8vLLM: RCE via exposed TCPStore in distributed inference
Same package: vllmCVE-2024-90539.8vllm: RCE via unsafe pickle deserialization in RPC server
Same package: vllm