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… (CVE-2026-16118)
A heap-based buffer overflow vulnerability exists in the xdgmime library's _xdg_mime_magic_parse_magic_line() function on little-endian systems. This flaw occurs when an attacker-controlled MIME magic file located in a user-writable XDG data directory is parsed by an application performing MIME type detection, potentially causing an out-of-bounds write of 2 bytes. The vulnerability can lead to application crashes or memory corruption. Exploitation requires local user interaction to install a malicious MIME magic file and trigger MIME type detection. Red Hat has released a security update addressing this issue in glib2 packages for Red Hat Enterprise Linux 10 and related products.
AI Analysis
Technical Summary
CVE-2026-16118 is a heap-based buffer overflow vulnerability in the _xdg_mime_magic_parse_magic_line() function of the xdgmime library (part of glib2). On little-endian systems, incorrect pointer arithmetic during byte-swapping causes a 2-byte out-of-bounds write when parsing attacker-controlled MIME magic files located in user-writable XDG data locations such as $XDG_DATA_HOME/mime/magic. This can result in application crashes or memory corruption. Exploitation requires convincing a user to install a malicious MIME magic file and then processing it with MIME type detection functions like g_content_type_guess(). Red Hat has issued a security advisory and released patched glib2 packages for Red Hat Enterprise Linux 10 and related variants to address this vulnerability.
Potential Impact
The vulnerability can cause denial of service via application crashes or memory corruption. Additionally, heap-based buffer overflows may allow execution of arbitrary code by overwriting function pointers or other critical memory structures, potentially compromising system integrity and availability. However, exploitation requires local user interaction to install malicious files and is limited to little-endian systems. The CVSS v3.1 base score is 7.1 (High), reflecting high impact on integrity and availability but no confidentiality impact.
Mitigation Recommendations
Red Hat has released official patches for this vulnerability in glib2 packages for Red Hat Enterprise Linux 10 and related products. Applying these updates will remediate the issue. Until patched, users should avoid installing MIME magic files or content from untrusted sources in user-writable XDG data locations. No other mitigations are specified by the vendor.
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… (CVE-2026-16118)
Description
A heap-based buffer overflow vulnerability exists in the xdgmime library's _xdg_mime_magic_parse_magic_line() function on little-endian systems. This flaw occurs when an attacker-controlled MIME magic file located in a user-writable XDG data directory is parsed by an application performing MIME type detection, potentially causing an out-of-bounds write of 2 bytes. The vulnerability can lead to application crashes or memory corruption. Exploitation requires local user interaction to install a malicious MIME magic file and trigger MIME type detection. Red Hat has released a security update addressing this issue in glib2 packages for Red Hat Enterprise Linux 10 and related products.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-16118 is a heap-based buffer overflow vulnerability in the _xdg_mime_magic_parse_magic_line() function of the xdgmime library (part of glib2). On little-endian systems, incorrect pointer arithmetic during byte-swapping causes a 2-byte out-of-bounds write when parsing attacker-controlled MIME magic files located in user-writable XDG data locations such as $XDG_DATA_HOME/mime/magic. This can result in application crashes or memory corruption. Exploitation requires convincing a user to install a malicious MIME magic file and then processing it with MIME type detection functions like g_content_type_guess(). Red Hat has issued a security advisory and released patched glib2 packages for Red Hat Enterprise Linux 10 and related variants to address this vulnerability.
Potential Impact
The vulnerability can cause denial of service via application crashes or memory corruption. Additionally, heap-based buffer overflows may allow execution of arbitrary code by overwriting function pointers or other critical memory structures, potentially compromising system integrity and availability. However, exploitation requires local user interaction to install malicious files and is limited to little-endian systems. The CVSS v3.1 base score is 7.1 (High), reflecting high impact on integrity and availability but no confidentiality impact.
Mitigation Recommendations
Red Hat has released official patches for this vulnerability in glib2 packages for Red Hat Enterprise Linux 10 and related products. Applying these updates will remediate the issue. Until patched, users should avoid installing MIME magic files or content from untrusted sources in user-writable XDG data locations. No other mitigations are specified by the vendor.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cp7g-r78m-cc2g
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-16118"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Patch Information
Threat ID: 6aa005aaacd9273b49ab46a0
Added to database: 09/08/2026, 12:55:06 UTC
Last enriched: 09/08/2026, 13:04:49 UTC
Last updated: 09/08/2026, 13:12:11 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.