
CVE catalog
CVE-2026-16118
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 ma
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.22% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | glib2.0 | sid | 2.90.1-2 | fixed |
| Debian | glib2.0 | forky | 2.90.1-2 | fixed |
| Debian | glib2.0 | trixie | 2.84.4-3~deb13u5 | fixed |
| Debian | glib2.0 | bookworm | 2.74.6-2+deb12u9 | vulnerable |
| Debian | glib2.0 | bookworm-security | 2.74.6-2+deb12u2 | vulnerable |
| Ubuntu | glib2.0 | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | gir1.2-girepository-3.0 | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | gir1.2-girepository-3.0-dev | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | gir1.2-glib-2.0 | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | gir1.2-glib-2.0-dev | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libgirepository-2.0-0 | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libgirepository-2.0-dev | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-0t64 | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-bin | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-data | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-dev | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-dev-bin | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-doc | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | libglib2.0-tests | noble | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | glib2.0 | pro | 2.62.1-1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.63.1-2 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.63.1-2ubuntu1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.63.3-1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.63.3-3 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.63.5-2 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.0-1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.1-1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.2-1~fakesync1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.3-1~ubuntu20.04.1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.2 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.3 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.4 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.6 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.7 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.8 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.9 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.9+esm1 | vulnerable |
| Ubuntu | glib2.0 | pro | 2.64.6-1~ubuntu20.04.9+esm2 | fixed |
| Ubuntu | glib2.0 | 22.04 | 2.68.4-1ubuntu1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.70.1-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.70.2-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.71.0-2 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.71.1-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.71.2-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.71.3-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.0-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.1-1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu1 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.2 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.3 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.4 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.5 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.6 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.7 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.8 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.9 | vulnerable |
| Ubuntu | glib2.0 | 22.04 | 2.72.4-0ubuntu2.10 | fixed |
| Ubuntu | glib2.0 | 24.04 | 2.78.0-2 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.78.1-4 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.78.3-1 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.78.3-2 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.79.1-1 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.79.2-1~ubuntu1 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.79.3-3ubuntu5 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu1 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.1 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.2 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.4 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.5 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.6 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.7 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.8 | vulnerable |
| Ubuntu | glib2.0 | 24.04 | 2.80.0-6ubuntu3.9 | fixed |
| Ubuntu | glib2.0 | 26.04 | 2.86.0-2 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.86.1-1 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.86.1-2 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.86.2-1 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.86.3-1 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.86.3-4 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.87.2-2 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.87.2-3 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.87.3-1 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.88.0-1 | vulnerable |
| Ubuntu | glib2.0 | 26.04 | 2.88.0-1ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | glib2.0 | source | sid | 2.88.3-3 | not yet assigned | Not reported | [1142717] |
| Debian | glib2.0 | source | forky | 2.88.3-3 | not yet assigned | Not reported | [1142717] |
| Debian | glib2.0 | source | trixie | 2.84.4-3~deb13u5 | not yet assigned | Not reported | [1142717] |
| Debian | glib2.0 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1142717] |
| Ubuntu | glib2.0 | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | gir1.2-girepository-3.0 | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | gir1.2-girepository-3.0-dev | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | gir1.2-glib-2.0 | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | gir1.2-glib-2.0-dev | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libgirepository-2.0-0 | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libgirepository-2.0-dev | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-0t64 | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-bin | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-data | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-dev | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-dev-bin | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-doc | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | libglib2.0-tests | deb | noble | 2.80.0-6ubuntu3.9 | Not reported | Not reported | Not reported |
| Ubuntu | glib2.0 | deb | pro | 2.64.6-1~ubuntu20.04.9+esm2 | Not reported | UBUNTU-CVE-2026-16118 | Not reported |
| Ubuntu | glib2.0 | deb | 22.04 | 2.72.4-0ubuntu2.10 | Not reported | UBUNTU-CVE-2026-16118 | Not reported |
| Ubuntu | glib2.0 | deb | 24.04 | 2.80.0-6ubuntu3.9 | Not reported | UBUNTU-CVE-2026-16118 | Not reported |
| Ubuntu | glib2.0 | deb | 26.04 | 2.88.0-1ubuntu0.1 | Not reported | UBUNTU-CVE-2026-16118 | Not reported |
Notes
[bookworm] glib2.0: Minor issue; 2-byte OOB write parsing the mime magic file in an XDG data dir, needs an attacker-writable XDG data dir; unfixed upstream
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libglib2.0-0]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· amd64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· arm64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· amd64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· arm64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
- [libglib2.0-bin]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· amd64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· arm64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· amd64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· arm64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
- [libglib2.0-data]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· all · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· all · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· all · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· all · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
- [libglib2.0-dev]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· amd64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· arm64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· amd64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· arm64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
- [libglib2.0-dev-bin]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· amd64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· arm64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· amd64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· arm64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
- [libglib2.0-doc]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· all · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· all · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· all · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· all · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
- [libglib2.0-tests]Affected
Source package: [glib2.0]
Details (4)
2.74.6-2+deb12u9· amd64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u9· arm64 · bookwormAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· amd64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
2.74.6-2+deb12u2· arm64 · bookworm-securityAffected
nvd · glib2.0 · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2026_64799.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-16118]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-16118]
- [https://security-tracker.debian.org/tracker/CVE-2026-16118]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-16118.json]
- [https://ubuntu.com/security/notices/USN-8794-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3229.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]