Skip to main content
CVE Radar
HIGH

CVE-2026-16118

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.

Published Updated Sources: cvelistV5, redhat

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Unreported

no source claims exploitation

EPSS

<1%

chance of exploitation in 30 days

Affects

Xdg

31 products listed

CVSS base

7.1

HIGH

CISA SSVC assessment

Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.

CISA

Exploitation

PoC

none · proof-of-concept · active

Automatable

No

can an attacker script all four kill-chain steps

Technical impact

Partial

partial · total control of the vulnerable component

Affected scope

The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.

Vendors (2)

Products (31)

xdgmimered hat enterprise linux 10red hat enterprise linux 10 0 extended update supportred hat enterprise linux 7 extended lifecycle supportred hat enterprise linux 8red hat enterprise linux 8 4 advanced mission critical update supportred hat enterprise linux 8 4 extended update support long life add onred hat enterprise linux 8 6 advanced mission critical update supportred hat enterprise linux 8 6 extended update support long life add onred hat enterprise linux 8 8 telecommunications update servicered hat enterprise linux 8 8 update services for sap solutionsred hat enterprise linux 9red hat enterprise linux 9 2 update services for sap solutionsred hat enterprise linux 9 4 update services for sap solutionsred hat enterprise linux 9 6 extended update supportcert manager support for red hat openshift release 1 17cert manager support for red hat openshift release 1 18cert manager support for red hat openshift release 1 20red hat ai inference server 3 2red hat ai inference server 3 5red hat cost management on premise 1red hat discovery 2red hat enterprise linux ai 3 5red hat openshift ai 3 0red hat openshift ai 3 2red hat openshift ai 3 3red hat openshift ai 3 4red hat openshift ai 3 5red hat update infrastructure 5red hat enterprise linux 7red hat openshift ai rhoai

Every base score collected

Sources score independently and disagree; each row says who scored it and under which version.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
7.1CVSS 3.1HIGHn/an/acvelistV5

Weakness & attack patterns

  • CWE-122

Detection

Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.

  • Search application, proxy, and WAF logs for requests touching /mime/magic.

References

25 on the record

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

  • Xdgevery CVE for this vendor
  • Red Hatevery CVE for this vendor
  • CWE-122other pages naming this weakness

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.