CVE-2026-16118
Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in xdgmimemagic.c
Mitigation
- Vendor workaround: Do not install a MIME magic file or content from untrusted sources.
Who should check
- Anyone running xdgmime all versions
- Anyone running Red Hat Enterprise Linux 10 all versions
- Anyone running Red Hat Enterprise Linux 10.0 Extended Update Support all versions
- Anyone running Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On all versions
- Anyone running Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions
Vulnerability facts
- Affected
- xdgmime all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 10.0 Extended Update Support all versions; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On all versions; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On all versions; Red Hat Enterprise Linux 8.8 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.6 Extended Update Support all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Red Hat AI Inference Server 3.2 all versions; Red Hat AI Inference Server 3.2 all versions; Red Hat AI Inference Server 3.2 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat Cost Management On-Premise 1 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Enterprise Linux 7 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat OpenShift AI (RHOAI)
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-122
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-16118. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-16118.md Affected: xdgmime all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 10.0 Extended Update Support all versions; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterpri… Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for xdgmime, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 7 Extended Lifecycle Support, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/errata/RHSA-2026:100504
- https://access.redhat.com/errata/RHSA-2026:102189
- https://access.redhat.com/errata/RHSA-2026:103506
- https://access.redhat.com/errata/RHSA-2026:64799
- https://access.redhat.com/errata/RHSA-2026:64800
- https://access.redhat.com/errata/RHSA-2026:66451
- https://access.redhat.com/errata/RHSA-2026:67956
- https://access.redhat.com/errata/RHSA-2026:70636
- https://access.redhat.com/errata/RHSA-2026:71403
- https://access.redhat.com/errata/RHSA-2026:71404
- https://access.redhat.com/errata/RHSA-2026:71405
- https://access.redhat.com/errata/RHSA-2026:72394
- https://access.redhat.com/errata/RHSA-2026:72395
- https://access.redhat.com/errata/RHSA-2026:72399
- https://access.redhat.com/errata/RHSA-2026:72470
- https://access.redhat.com/errata/RHSA-2026:72475
- https://access.redhat.com/errata/RHSA-2026:72476
- https://access.redhat.com/errata/RHSA-2026:72502
- https://access.redhat.com/errata/RHSA-2026:73859
- https://access.redhat.com/errata/RHSA-2026:73909
- https://access.redhat.com/errata/RHSA-2026:73929
- https://access.redhat.com/errata/RHSA-2026:73930
- https://access.redhat.com/errata/RHSA-2026:73959
- https://access.redhat.com/errata/RHSA-2026:73960
- https://access.redhat.com/errata/RHSA-2026:73961
- https://access.redhat.com/errata/RHSA-2026:73962
- https://access.redhat.com/errata/RHSA-2026:74359
- https://access.redhat.com/errata/RHSA-2026:74360
- https://access.redhat.com/errata/RHSA-2026:74361
- https://access.redhat.com/errata/RHSA-2026:74362
- https://access.redhat.com/errata/RHSA-2026:74363
- https://access.redhat.com/errata/RHSA-2026:74364
- https://access.redhat.com/errata/RHSA-2026:74365
- https://access.redhat.com/errata/RHSA-2026:74450
- https://access.redhat.com/errata/RHSA-2026:74458
- https://access.redhat.com/errata/RHSA-2026:74459
- https://access.redhat.com/errata/RHSA-2026:74460
- https://access.redhat.com/errata/RHSA-2026:74461
- https://access.redhat.com/errata/RHSA-2026:74462
- https://access.redhat.com/errata/RHSA-2026:74463
- https://access.redhat.com/errata/RHSA-2026:74674
- https://access.redhat.com/errata/RHSA-2026:74677
- https://access.redhat.com/errata/RHSA-2026:74678
- https://access.redhat.com/errata/RHSA-2026:74679
- https://access.redhat.com/errata/RHSA-2026:74681
- https://access.redhat.com/errata/RHSA-2026:74683
- https://access.redhat.com/errata/RHSA-2026:74685
- https://access.redhat.com/errata/RHSA-2026:74687
- https://access.redhat.com/errata/RHSA-2026:74688
- https://access.redhat.com/errata/RHSA-2026:74771
- https://access.redhat.com/errata/RHSA-2026:75652
- https://access.redhat.com/errata/RHSA-2026:75654
- https://access.redhat.com/errata/RHSA-2026:75655
- https://access.redhat.com/errata/RHSA-2026:75657
- https://access.redhat.com/errata/RHSA-2026:75658
- https://access.redhat.com/errata/RHSA-2026:75659
- https://access.redhat.com/errata/RHSA-2026:75660
- https://access.redhat.com/errata/RHSA-2026:76042
- https://access.redhat.com/errata/RHSA-2026:79357
- https://access.redhat.com/errata/RHSA-2026:80756
- https://access.redhat.com/errata/RHSA-2026:81127
- https://access.redhat.com/errata/RHSA-2026:82059
- https://access.redhat.com/errata/RHSA-2026:82061
- https://access.redhat.com/errata/RHSA-2026:82066
- https://access.redhat.com/errata/RHSA-2026:82304
- https://access.redhat.com/errata/RHSA-2026:82322
- https://access.redhat.com/errata/RHSA-2026:82336
- https://access.redhat.com/errata/RHSA-2026:82347
- https://access.redhat.com/errata/RHSA-2026:82354
- https://access.redhat.com/errata/RHSA-2026:82368
- https://access.redhat.com/errata/RHSA-2026:82371
- https://access.redhat.com/errata/RHSA-2026:82372
- https://access.redhat.com/errata/RHSA-2026:82415
- https://access.redhat.com/errata/RHSA-2026:82857
- https://access.redhat.com/errata/RHSA-2026:82888
- https://access.redhat.com/errata/RHSA-2026:92449
- https://access.redhat.com/errata/RHSA-2026:92452
- https://access.redhat.com/errata/RHSA-2026:98452
- https://access.redhat.com/errata/RHSA-2026:98557
- https://access.redhat.com/errata/RHSA-2026:99864
Exploits and PoCs
FAQ
Is CVE-2026-16118 being exploited?
There is no confirmed exploitation: CVE-2026-16118 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-16118?
High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-16118?
xdgmime all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 10.0 Extended Update Support all versions; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On all versions; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On all versions; Red Hat Enterprise Linux 8.8 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.6 Extended Update Support all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.17 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Cert Manager support for Red Hat OpenShift release 1.20 all versions; Red Hat AI Inference Server 3.2 all versions; Red Hat AI Inference Server 3.2 all versions; Red Hat AI Inference Server 3.2 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat AI Inference Server 3.5 all versions; Red Hat Cost Management On-Premise 1 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat Enterprise Linux AI 3.5 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.0 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.2 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.3 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.4 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat OpenShift AI 3.5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Enterprise Linux 7 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat OpenShift AI (RHOAI).
Is there a fix for CVE-2026-16118?
No fixed version is listed in the sources yet. Vendor workaround: Do not install a MIME magic file or content from untrusted sources.
How do I check if I'm affected by CVE-2026-16118?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.