The keyfile settings backend in GNOME GLib (aka glib2.0) before 2.60.0 creates directories using gfilemakedirectorywithparents (kfsb->dir, NULL, NULL) and files using gfilereplacecontents (kfsb->file, contents, length, NULL, FALSE, GFILECREATEREPLACEDESTINATION, 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.
{
"sources": [
{
"id": "CVE-2019-13012",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2019-13012",
"imported": "2025-10-19T21:13:23.534Z",
"modified": "2024-11-21T04:24:01.900Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2019-13012",
"published": "2019-06-28T15:15:10.970Z"
}
],
"license": "CC-BY-4.0"
}