CVE-2019-12450 in glibinfo

Summary

by MITRE

file_copy_fallback in gio/gfile.c in GNOME GLib 2.15.0 through 2.61.1 does not properly restrict file permissions while a copy operation is in progress. Instead, default permissions are used.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 09/25/2023

The vulnerability identified as CVE-2019-12450 resides within the GNOME GLib library's file copy functionality, specifically in the file_copy_fallback function located in gio/gfile.c. This issue affects versions 2.15.0 through 2.61.1 of the GLib library, which serves as a fundamental component in many Linux and Unix-based systems. The flaw represents a critical security oversight in how file permissions are handled during copy operations, creating potential security implications for systems relying on this library for file management tasks.

The technical flaw manifests when the file_copy_fallback function executes during file copy operations. Rather than maintaining the original file's permissions during the copy process, the function defaults to using standard permission settings. This behavior creates a scenario where files may be copied with less restrictive permissions than their source counterparts, potentially exposing sensitive data or system resources to unauthorized access. The vulnerability stems from inadequate permission handling during file system operations, specifically when fallback mechanisms are triggered during copy processes.

From an operational impact perspective, this vulnerability can lead to significant security consequences across various system environments. When applications or system processes utilize GLib's file copy functionality, they may inadvertently create files with inappropriate permissions, potentially allowing unauthorized users to access or modify sensitive data. The impact extends beyond simple file access issues, as it can contribute to privilege escalation scenarios where default permissions provide broader access than intended. This vulnerability affects systems where GLib is used extensively for file operations, including desktop environments, servers, and applications built on the GNOME platform.

The vulnerability aligns with CWE-276, which addresses improper file permissions, and can be mapped to ATT&CK technique T1074.001 for data staging and T1068 for exploit development through privilege escalation. Organizations using affected versions of GLib should prioritize immediate patching to address this vulnerability. The recommended mitigation strategy involves upgrading to GLib version 2.61.2 or later, where the file copy functionality properly maintains original file permissions during copy operations. Additionally, system administrators should conduct thorough security assessments of applications that rely on GLib's file handling capabilities to ensure proper permission management throughout the file system operations.

Reservation

05/29/2019

Moderation

accepted

CPE

ready

EPSS

0.02602

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!