Home / xdg / xdgmime / CVE-2026-16118
CVE-2026-16118: is it exploited, and which versions of xdgmime are affected and fixed?
CVE-2026-16118 is a heap buffer overflow vulnerability in xdgmime. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: xdgmime all versions (the record names no range) (CVE record by redhat). Fixed in 0:2.80.4-12.el10_2.22, 0:2.80.4-22.el10_3.23, 0:2.80.4-4.el10_0.18, 0:2.56.1-13.el7_9.2 and 2 more (CVE record by redhat). Severity: High (7.1, CVSS 3.1, from redhat).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record December 2, 2026, 23:21 UTC and NVD December 3, 2026, 01:13 UTC.
What is CVE-2026-16118?
Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in xdgmimemagic.c
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.
From the CVE record by redhat, last updated December 2, 2026, 23:12 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| xdg | xdgmime | all versions (the record names no range) | |
| Red Hat | Red Hat Enterprise Linux 10 glib2 | all versions (default) | 0:2.80.4-12.el10_2.22 |
| Red Hat | Red Hat Enterprise Linux 10 glib2 | all versions (default) | 0:2.80.4-22.el10_3.23 |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support glib2 | all versions (default) | 0:2.80.4-4.el10_0.18 |
| Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support glib2 | all versions (default) | 0:2.56.1-13.el7_9.2 |
| Red Hat | Red Hat Enterprise Linux 8 glib2 | all versions (default) | 0:2.56.4-178.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support glib2 | all versions (default) | 0:2.56.4-10.el8_4.8 |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On glib2 | all versions (default) | 0:2.56.4-10.el8_4.8 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support glib2 | all versions (default) | 0:2.56.4-158.el8_6.8 |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On glib2 | all versions (default) | 0:2.56.4-158.el8_6.8 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service glib2 | all versions (default) | 0:2.56.4-165.el8_8.3 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions glib2 | all versions (default) | 0:2.56.4-165.el8_8.3 |
| Red Hat | Red Hat Enterprise Linux 9 glib2 | all versions (default) | 0:2.68.4-19.el9_8.10 |
| Red Hat | Red Hat Enterprise Linux 9 glib2 | all versions (default) | 0:2.68.4-29.el9_9.1 |
| Red Hat | Red Hat Enterprise Linux 9 glib2 | all versions (default) | 0:2.68.4-19.el9_8.10 |
| Red Hat | Red Hat Enterprise Linux 9 glib2 | all versions (default) | 0:2.68.4-29.el9_9.1 |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions glib2 | all versions (default) | 0:2.68.4-7.el9_2.8 |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions glib2 | all versions (default) | 0:2.68.4-14.el9_4.9 |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support glib2 | all versions (default) | 0:2.68.4-16.el9_6.8 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 cert-manager/jetstack-cert-manager-acmesolver-rhel9 | all versions (default) | 1791371080 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 cert-manager/jetstack-cert-manager-rhel9 | all versions (default) | 1791371069 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 cert-manager/cert-manager-operator-rhel9 | all versions (default) | 1791788287 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 cert-manager/cert-manager-istio-csr-rhel9 | all versions (default) | 1791378395 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 cert-manager/cert-manager-operator-bundle | all versions (default) | 1791970484 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 cert-manager/jetstack-cert-manager-acmesolver-rhel9 | all versions (default) | 1791459707 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 cert-manager/jetstack-cert-manager-rhel9 | all versions (default) | 1791459711 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 cert-manager/cert-manager-istio-csr-rhel9 | all versions (default) | 1791459759 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 cert-manager/cert-manager-operator-rhel9 | all versions (default) | 1789029076 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 cert-manager/cert-manager-operator-bundle | all versions (default) | 1791966259 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/jetstack-cert-manager-rhel9 | all versions (default) | 1790223279 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/cert-manager-istio-csr-rhel9 | all versions (default) | 1790223719 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/cert-manager-operator-rhel9 | all versions (default) | 1790272426 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/jetstack-cert-manager-acmesolver-rhel9 | all versions (default) | 1790589998 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/jetstack-cert-manager-rhel9 | all versions (default) | 1790589912 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/cert-manager-istio-csr-rhel9 | all versions (default) | 1790589914 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/cert-manager-operator-rhel9 | all versions (default) | 1790589855 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 cert-manager/cert-manager-trust-manager-rhel9 | all versions (default) | 1790598593 |
| Red Hat | Red Hat AI Inference Server 3.2 rhaiis/model-opt-cuda-rhel9 | all versions (default) | 1790621714 |
| Red Hat | Red Hat AI Inference Server 3.2 rhaiis/vllm-cuda-rhel9 | all versions (default) | 1790621718 |
| Red Hat | Red Hat AI Inference Server 3.2 rhaiis/vllm-rocm-rhel9 | all versions (default) | 1790621713 |
As the CVE record by redhat states it, last updated December 2, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-16118?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H | redhat |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-16118 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, July 22, 2026)
- EPSS
- 0.28% probability of exploitation activity in the next 30 days, percentile 21.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-122 Heap-based Buffer Overflow
Is there a workaround? (from the CVE record)
Do not install a MIME magic file or content from untrusted sources.
Where are the vendor advisories and references?
- RHSA-2026:100504 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:102189 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:103506 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:104803 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:64799 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:64800 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:66451 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:67956 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:70636 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:71403 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:71404 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:71405 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72394 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72395 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72399 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72470 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72475 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72476 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:72502 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73859 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73909 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73929 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73930 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73959 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73960 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73961 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:73962 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74359 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74360 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74361 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74362 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74363 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74364 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74365 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74450 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74458 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74459 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74460 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74461 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74462 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74463 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74674 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74677 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74678 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74679 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74681 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74683 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74685 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74687 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74688 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:74771 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75652 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75654 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75655 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75657 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75658 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75659 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:75660 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:76042 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:79357 vendor-advisory, x_refsource_REDHAT
Who found and reported it?
- Red Hat would like to thank asotyc for reporting this issue. (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- July 17, 2026
- Published
- July 17, 2026, 19:44 UTC
- CVE record updated
- December 2, 2026, 23:12 UTC by redhat
- NVD
- Awaiting Analysis, last modified December 3, 2026, 00:18 UTC
- Last checked
- CVE list December 2, 2026, 23:21 UTC; NVD December 3, 2026, 01:13 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-16118
Is CVE-2026-16118 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.28% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of xdgmime are affected by CVE-2026-16118?
xdgmime all versions (the record names no range), per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2026-16118?
0:2.80.4-12.el10_2.22, 0:2.80.4-22.el10_3.23, 0:2.80.4-4.el10_0.18, 0:2.56.1-13.el7_9.2, 0:2.56.4-178.el8_10 and 0:2.56.4-10.el8_4.8, per the CVE record by redhat. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-16118?
High (7.1, CVSS 3.1, from redhat). The severity table above shows each score with its source.
Where is the official record of CVE-2026-16118?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.