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 component of glib2, specifically in the _xdg_mime_magic_parse_magic_line() function on little-endian systems. This flaw can be triggered when an attacker-controlled MIME magic file located in a user-writable XDG data directory is parsed by applications performing MIME type detection, potentially causing application crashes or memory corruption. The issue affects certain versions of glib2 used in SUSE and Red Hat Enterprise Linux 10. A security update is available to address this vulnerability.
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 within xdgmimemagic.c of glib2. On little-endian systems, improper pointer arithmetic during byte-swapping leads to an out-of-bounds write of 2 bytes when parsing attacker-controlled MIME magic files in user-writable XDG data locations. This can result in application crashes or memory corruption. The vulnerability affects glib2 versions in Red Hat Enterprise Linux 10 and SUSE distributions as specified. Red Hat has issued a security advisory (RHSA-2026:64799) with patches to remediate this issue.
Potential Impact
Exploitation of this vulnerability can cause application crashes or memory corruption due to out-of-bounds writes. This may lead to denial of service or potentially other undefined behavior depending on the application using glib2 for MIME type detection. No known exploits are reported in the wild at this time.
Mitigation Recommendations
A security update fixing this vulnerability is available from Red Hat as detailed in advisory RHSA-2026:64799. Users should apply the updated glib2 packages provided by their vendor to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cp7g-r78m-cc2g
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-16118"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Patch Information
Threat ID: 6aa005aaacd9273b49ab46a0
Added to database: 09/08/2026, 12:55:06 UTC
Last enriched: 10/08/2026, 22:52:55 UTC
Last updated: 10/22/2026, 13:15:20 UTC
Views: 44
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.
External Links
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.