Moderate Security Vulnerability in glib2: Heap-Based Buffer Overflow

glib2 Updated 09 Sep 2026

Summary

09/09/2026
N/A
Yes i
High
7.1

RLSA-2026:64799: Moderate: glib2 security update. Affects glib2 versions < 0:2.80.4-12.el10_2.22. Fixed in 0:2.80.4-12.el10_2.22. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

GLib is a fundamental library that provides essential building blocks for C libraries and applications. It is widely used in the GNOME desktop environment and offers a robust object system, main loop implementation, and a variety of utility functions for handling strings and data structures. The library's extensive use makes it a critical component in many applications, and vulnerabilities within it can have widespread implications.

Vulnerability Detail

The vulnerability identified as CVE-2026-16118 is a heap-based buffer overflow found in the function _xdg_mime_magic_parse_magic_line() within the xdgmimemagic.c file of GLib. This flaw can potentially allow an attacker to execute arbitrary code, leading to a denial of service or unauthorized access to sensitive information. The vulnerability arises from improper handling of input data, which can be exploited if an application processes maliciously crafted MIME type data.

How To Fix

Minimum fixed version

0:2.80.4-12.el10_2.22

This is the first release that contains the fix.

sudo dnf update glib2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users are advised to avoid processing untrusted or unverified MIME type data until the package is updated. This can help mitigate the risk of exploitation while waiting for the patch.

Conclusion

The glib2 library has a moderate security vulnerability (CVE-2026-16118) that can lead to serious consequences if not addressed. Users are strongly encouraged to update to the latest patched version to mitigate risks. Additionally, using tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for glib2 →

Share this vulnerability

FAQ

CVE-2026-16118 is a security vulnerability in the GLib library that allows for a heap-based buffer overflow, potentially leading to arbitrary code execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The impacts include possible arbitrary code execution, denial of service, and exposure of sensitive information, depending on how the vulnerability is exploited.

If an immediate update is not possible, avoid processing untrusted MIME type data as a temporary workaround to reduce the risk of exploitation.

More details can be found on the CVE page linked in the references section of the vulnerability report.

Related vulnerabilities

Recent vulnerabilities recorded for glib2.

How To Fix

Minimum fixed version

0:2.80.4-12.el10_2.22

This is the first release that contains the fix.

sudo dnf update glib2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback