Skip to main content
EPSS 0.3%top 81%

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)

0
High
Published: 07/17/2026 (07/17/2026, 21:31:44 UTC)
Source: GCVE Database

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected software

redhat/glib2
pkg:rpm/redhat/glib2
Affected versions
>=10 <10.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 22:52:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses