The keyfile settings backend in GNOME GLib (aka glib2.0) before 2.60.0 creates…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 2 fixed, 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 1 advisory
- RHSA-2021:1586 Released 2021-05-18 · Red Hat rating ModerateGNOME security, bug fix, and enhancement update
- Red Hat CodeReady Linux Builder (v. 8) glib2-doc-2.56.4-9.el8, glib2-static-2.56.4-9.el8
- Red Hat Enterprise Linux AppStream (v. 8) gdm-1:3.28.3-39.el8, webkit2gtk3-2.30.4-1.el8, webkit2gtk3-devel-2.30.4-1.el8 +2
- Red Hat Enterprise Linux BaseOS (v. 8) glib2-2.56.4-9.el8, glib2-devel-2.56.4-9.el8, glib2-fam-2.56.4-9.el8 +1
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2021:1586 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2021:1586 |
Not affected: 4 products
- Red Hat CodeReady Linux Builder (v. 8)
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux AppStream (v. 8)
- Red Hat Enterprise Linux BaseOS (v. 8)
Timeline
- 2026-10-02 Threatist record created from CVE-2019-13012
- 2026-10-03 Alias added: GHSA-4cmr-h54h-4w78
References
Advisory 5
Other 6
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931234#12
- [debian-lts-announce] 20190731 [SECURITY] [DLA 1866-1] glib2.0 security update
- [debian-lts-announce] 20190805 [SECURITY] [DLA 1866-2] glib2.0 regression update
- https://security.netapp.com/advisory/ntap-20190806-0003/
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8
More GNOME Glib vulnerabilities
- TI-2026-41775 Glib: off-by-one error in glib/gkeyfile.c via "g_key_file_get_locale_string_list" CVSS 3.1HIGH 8.6
- TI-2026-41772 Glib: out-of-bounds read in glib/gdatetime.c:g_date_time_get_ymd via invalid gdatetime CVSS 3.1HIGH 7.5
- TI-2025-03596 Glib: glib crash after long command line CVSS 3.1HIGH 7.5
- TI-2023-15942 Gvariant deserialisation does not match spec for non-normal data CVSS 3.1MEDIUM 5.5
- TI-2024-35203 gio/gsocks4aproxy.c in GNOME GLib before 2.82.1 has an off-by-one error and resultant… CVSS 3.1CRITICAL 9.8
- TI-2018-11777 In GNOME GLib 2.56.1, g_markup_parse_context_end_parse() in gmarkup.c has a NULL pointer dereference. CVSS 3.0CRITICAL 9.8
Sources
- CVE-2019-13012 · CVE Program
- CVE-2019-13012 · NVD
- FIRST EPSS
- GHSA-4cmr-h54h-4w78 · GitHub Advisory Database · CC BY 4.0
- CVE-2019-13012 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences