CVE-2019-13012
The keyfile settings backend in GNOME GLib (aka glib2.0) before 2.60.0 creates directories using g_file_make_directory_with_parents (kfsb->dir, NULL, NULL) and files using g_file_replace_contents (kfsb->file, contents, length, NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION, NULL, NULL, NULL). Consequently, it does not properly restrict directory (and file) permissions. Instead, for directories, 0777 permissions are used; for files, default file permissions are used. This is similar to CVE-2019-12450.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | glib2.0 | Fixed | 2.56.4-0ubuntu0.18.04.4 | UBUNTU-CVE-2019-13012 |
| Ubuntu 16.04 | glib2.0 | Fixed | 2.48.2-0ubuntu4.4 | UBUNTU-CVE-2019-13012 |
| Ubuntu 14.04 | glib2.0 | Fix pending | 2.40.2-0ubuntu1.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2019-13012 |
| Debian 14 | glib2.0 | Fixed | 2.60.5-1 | DEBIAN-CVE-2019-13012 |
| Debian 13 | glib2.0 | Fixed | 2.60.5-1 | DEBIAN-CVE-2019-13012 |
| Debian 12 | glib2.0 | Fixed | 2.60.5-1 | DEBIAN-CVE-2019-13012 |
| Red Hat Enterprise Linux 8 | gdm | Fixed | 1:3.28.3-39.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | glib2 | Fixed | 0:2.56.4-9.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | glib2-devel | Fixed | 0:2.56.4-9.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | glib2-doc | Fixed | 0:2.56.4-9.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | glib2-fam | Fixed | 0:2.56.4-9.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | glib2-static | Fixed | 0:2.56.4-9.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | glib2-tests | Fixed | 0:2.56.4-9.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | webkit2gtk3 | Fixed | 0:2.30.4-1.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | webkit2gtk3-devel | Fixed | 0:2.30.4-1.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | webkit2gtk3-jsc | Fixed | 0:2.30.4-1.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 8 | webkit2gtk3-jsc-devel | Fixed | 0:2.30.4-1.el8 | RHSA-2021:1586 |
| Red Hat Enterprise Linux 7 | glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-fam | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | glib2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | glib2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | glib2-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | glib2-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | glib2 | Not affected | ||
| AlmaLinux 8 | OpenEXR-devel | Fixed | 2.2.0-12.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | OpenEXR-libs | Fixed | 2.2.0-12.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | accountsservice-devel | Fixed | 0.6.55-1.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | atkmm | Fixed | 2.24.2-7.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | atkmm-devel | Fixed | 2.24.2-7.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | atkmm-doc | Fixed | 2.24.2-7.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | cairomm | Fixed | 1.12.0-8.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | cairomm-devel | Fixed | 1.12.0-8.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | cairomm-doc | Fixed | 1.12.0-8.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | chrome-gnome-shell | Fixed | 10.1-7.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | dleyna-core | Fixed | 0.6.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | dleyna-server | Fixed | 0.6.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | enchant2 | Fixed | 2.2.3-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | enchant2-devel | Fixed | 2.2.3-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gamin | Fixed | 0.1.10-32.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gamin-devel | Fixed | 0.1.10-32.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | geoclue2 | Fixed | 2.5.5-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | geoclue2-demos | Fixed | 2.5.5-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | geoclue2-devel | Fixed | 2.5.5-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | geoclue2-libs | Fixed | 2.5.5-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | geocode-glib | Fixed | 3.26.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | geocode-glib-devel | Fixed | 3.26.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gjs | Fixed | 1.56.2-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gjs-devel | Fixed | 1.56.2-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | glib2-doc | Fixed | 2.56.4-9.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | glib2-static | Fixed | 2.56.4-9.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | glibmm24 | Fixed | 2.56.0-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | glibmm24-devel | Fixed | 2.56.0-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | glibmm24-doc | Fixed | 2.56.0-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gnome-boxes | Fixed | 3.36.5-8.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gnome-photos | Fixed | 3.28.1-4.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gnome-photos-tests | Fixed | 3.28.1-4.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gnome-terminal | Fixed | 3.28.3-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gnome-terminal-nautilus | Fixed | 3.28.3-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtk-doc | Fixed | 1.28-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtk2 | Fixed | 2.24.32-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtk2-devel | Fixed | 2.24.32-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtk2-devel-docs | Fixed | 2.24.32-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtk2-immodule-xim | Fixed | 2.24.32-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtk2-immodules | Fixed | 2.24.32-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtkmm24 | Fixed | 2.24.5-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtkmm24-devel | Fixed | 2.24.5-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtkmm24-docs | Fixed | 2.24.5-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtkmm30 | Fixed | 3.22.2-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtkmm30-devel | Fixed | 3.22.2-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gtkmm30-doc | Fixed | 3.22.2-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-afc | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-afp | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-archive | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-client | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-devel | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-fuse | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-goa | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-gphoto2 | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-mtp | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | gvfs-smb | Fixed | 1.36.2-11.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libdazzle | Fixed | 3.28.5-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libdazzle-devel | Fixed | 3.28.5-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libepubgen | Fixed | 0.1.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libepubgen-devel | Fixed | 0.1.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libsass | Fixed | 3.4.5-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libsass-devel | Fixed | 3.4.5-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libsigc++20 | Fixed | 2.10.0-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libsigc++20-devel | Fixed | 2.10.0-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libsigc++20-doc | Fixed | 2.10.0-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libvisual | Fixed | 1:0.4.0-25.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | libvisual-devel | Fixed | 1:0.4.0-25.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | mutter-devel | Fixed | 3.32.2-57.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | nautilus | Fixed | 3.28.1-15.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | nautilus-devel | Fixed | 3.28.1-15.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | nautilus-extensions | Fixed | 3.28.1-15.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | pangomm | Fixed | 2.40.1-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | pangomm-devel | Fixed | 2.40.1-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | pangomm-doc | Fixed | 2.40.1-6.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | soundtouch | Fixed | 2.0.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | soundtouch-devel | Fixed | 2.0.0-3.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | vala | Fixed | 0.40.19-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | vala-devel | Fixed | 0.40.19-2.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | woff2 | Fixed | 1.0.2-5.el8 | ALSA-2021:1586 |
| AlmaLinux 8 | woff2-devel | Fixed | 1.0.2-5.el8 | ALSA-2021:1586 |
| Rocky Linux 8 | OpenEXR | Fixed | 0:2.2.0-12.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | accountsservice | Fixed | 0:0.6.55-1.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | atkmm | Fixed | 0:2.24.2-7.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | cairomm | Fixed | 0:1.12.0-8.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | chrome-gnome-shell | Fixed | 0:10.1-7.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | dleyna-core | Fixed | 0:0.6.0-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | dleyna-server | Fixed | 0:0.6.0-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | enchant2 | Fixed | 0:2.2.3-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gamin | Fixed | 0:0.1.10-32.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gdm | Fixed | 1:3.28.3-39.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | geoclue2 | Fixed | 0:2.5.5-2.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | geocode-glib | Fixed | 0:3.26.0-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gjs | Fixed | 0:1.56.2-5.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | glibmm24 | Fixed | 0:2.56.0-2.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-boxes | Fixed | 0:3.36.5-8.el8.rocky.0.1 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-control-center | Fixed | 0:3.28.2-27.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-online-accounts | Fixed | 0:3.28.2-2.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-photos | Fixed | 0:3.28.1-4.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-settings-daemon | Fixed | 0:3.32.0-14.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-shell | Fixed | 0:3.32.2-30.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-software | Fixed | 0:3.36.1-5.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gnome-terminal | Fixed | 0:3.28.3-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gtk-doc | Fixed | 0:1.28-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gtk2 | Fixed | 0:2.24.32-5.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gtkmm24 | Fixed | 0:2.24.5-6.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gtkmm30 | Fixed | 0:3.22.2-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | gvfs | Fixed | 0:1.36.2-11.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | libdazzle | Fixed | 0:3.28.5-2.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | libepubgen | Fixed | 0:0.1.0-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | libsass | Fixed | 0:3.4.5-6.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | libsigc++20 | Fixed | 0:2.10.0-6.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | libvisual | Fixed | 1:0.4.0-25.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | mutter | Fixed | 0:3.32.2-57.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | nautilus | Fixed | 0:3.28.1-15.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | pangomm | Fixed | 0:2.40.1-6.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | soundtouch | Fixed | 0:2.0.0-3.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | vala | Fixed | 0:0.40.19-2.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | webkit2gtk3 | Fixed | 0:2.30.4-1.el8 | RLSA-2021:1586 |
| Rocky Linux 8 | woff2 | Fixed | 0:1.0.2-5.el8 | RLSA-2021:1586 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/4049-1/ (vendor-advisory)
- https://usn.ubuntu.com/4049-2/ (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00022.html (vendor-advisory)
References
- https://gitlab.gnome.org/GNOME/glib/issues/1658
- https://gitlab.gnome.org/GNOME/glib/merge_requests/450
- https://gitlab.gnome.org/GNOME/glib/commit/5e4da714f00f6bfb2ccd6d73d61329c6f3a08429
- https://usn.ubuntu.com/4049-1/
- https://usn.ubuntu.com/4049-2/
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00022.html
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931234#12
- https://lists.debian.org/debian-lts-announce/2019/07/msg00029.html
- https://lists.debian.org/debian-lts-announce/2019/08/msg00004.html
- https://security.netapp.com/advisory/ntap-20190806-0003/
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.