Skip to content
Heist/ feed
Back to feed
MediumFix available

glib2.0 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-28153

An issue was discovered in GNOME GLib before 2.66.8. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.)

Products
glib2.0
Affected versions
Not specified
Fixed versions
2.66.7-2
CVEs
CVE-2021-28153
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 16:37 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-28153

core-osv · Original source

Published 11 Mar 2021, 22:15 UTC

An issue was discovered in GNOME GLib before 2.66.8. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.)

osv:DEBIAN-CVE-2021-28153

glib2.0

Fixed versions: 2.66.7-2

glib2.0

Fixed versions: 2.66.7-2

glib2.0

Fixed versions: 2.66.7-2

Complete source record
{
  "id": "b90f90ab799be3f033a35b6c6d96e830197df1789feb427ff50ef91c0a910343",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-28153",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-28153",
    "summary": "An issue was discovered in GNOME GLib before 2.66.8. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.)",
    "evidence": "osv:DEBIAN-CVE-2021-28153",
    "products": [
      {
        "name": {
          "value": "glib2.0",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.66.7-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "glib2.0",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.66.7-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "glib2.0",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.66.7-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-28153",
      "aliases": [
        "DEBIAN-CVE-2021-28153"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.66.7-2"
                }
              ]
            }
          ],
          "package": {
            "name": "glib2.0",
            "purl": "pkg:deb/debian/glib2.0?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-28153.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.66.7-2"
                }
              ]
            }
          ],
          "package": {
            "name": "glib2.0",
            "purl": "pkg:deb/debian/glib2.0?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-28153.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.66.7-2"
                }
              ]
            }
          ],
          "package": {
            "name": "glib2.0",
            "purl": "pkg:deb/debian/glib2.0?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-28153.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T09:47:35.112178352Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-28153"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-28153"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-28153",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 327789,
  "published_at": "2021-03-11T22:15:12.777+00:00"
}