Moderate Security Vulnerability in glib2 Package: Heap-Based Buffer Overflow

glib2 Updated 09 Sep 2026

Summary

08/09/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:64800: Moderate: glib2 security update. Affects glib2 versions < 2.68.4-19.el9_8.10. Fixed in 2.68.4-19.el9_8.10. 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 core application building blocks for C libraries and applications. It includes an object system, main loop implementation, and utility functions for strings and data structures. This library is widely used in GNOME applications, making its security critical for a large number of software projects.

Vulnerability Detail

The vulnerability identified as CVE-2026-16118 is a heap-based buffer overflow in the function _xdg_mime_magic_parse_magic_line() located in xdgmimemagic.c. This flaw can potentially allow an attacker to execute arbitrary code, leading to system compromise or data corruption. The issue arises from improper handling of input data, which can overflow the allocated memory buffer.

How To Fix

Minimum fixed version

2.68.4-19.el9_8.10

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

If immediate updating is not feasible, consider restricting access to the affected application or library until the patch can be applied. Additionally, monitor for any unusual activity that may indicate exploitation attempts.

Conclusion

The glib2 package has a moderate security vulnerability that could lead to severe consequences if not addressed. It is crucial to update to the patched version as soon as possible to mitigate risks associated with this vulnerability.

See every vulnerability recorded for glib2 →

Share this vulnerability

FAQ

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

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Failing to fix this vulnerability may expose your system to attacks that could lead to unauthorized access, data loss, or system instability.

Yes, you can restrict access to the affected application and monitor for any suspicious activity until the patch is applied.

If immediate updates are not possible, consider implementing access controls and monitoring to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for glib2.

How To Fix

Minimum fixed version

2.68.4-19.el9_8.10

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