Critical File Permission Vulnerability in GLib Package

glib Updated 02 Oct 2025

Summary

29/05/2019
N/A
Yes i
Critical
9.8

ALPINE-CVE-2019-12450: 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. Affects glib versions < 2.60.4-r0. Fixed in 2.60.4-r0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

GLib is a low-level core library that forms the basis for projects such as GTK and GNOME. It provides data structures, utility functions, and object-oriented programming features for C. The library is widely used in various applications, making it crucial for developers to ensure its security. The vulnerability in question affects versions of GLib prior to 2.60.4, where improper file permission handling during copy operations can lead to unauthorized access to sensitive files.

Vulnerability Detail

The vulnerability, identified as CVE-2019-12450, originates from the file_copy_fallback function in gio/gfile.c within GLib versions 2.15.0 to 2.61.1. It fails to properly restrict file permissions while a copy operation is in progress, leading to the application using default permissions instead. This can result in sensitive files being exposed to unauthorized users, potentially allowing them to read or modify critical data. The CVSS score for this vulnerability is 9.8, indicating a high severity level that necessitates immediate attention.

How To Fix

Minimum fixed version

2.60.4-r0

This is the first release that contains the fix.

sudo apk add --upgrade glib

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

Workaround

As a temporary workaround, you can restrict access to sensitive files manually during copy operations by adjusting file permissions using the chmod command. For example, you can run 'chmod 600 <filename>' to limit access to the file owner only.

Conclusion

The CVE-2019-12450 vulnerability in the GLib package poses a significant risk due to improper file permission handling during copy operations. It is crucial to update to the patched version to mitigate this risk. For those unable to update immediately, temporary workarounds can help secure sensitive files.

See every vulnerability recorded for glib →

Share this vulnerability

FAQ

CVE-2019-12450 is a vulnerability in the GLib package that allows improper file permission handling during copy operations, potentially exposing sensitive files.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for CVE-2019-12450 is 9.8, indicating a critical level of severity.

If an immediate update is not possible, consider implementing manual file permission restrictions as a temporary workaround.

More information about GLib can be found on its official documentation page or the GNOME project website.

Related vulnerabilities

Recent vulnerabilities recorded for glib.

How To Fix

Minimum fixed version

2.60.4-r0

This is the first release that contains the fix.

sudo apk add --upgrade glib

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