# JLSEC-2025-158: An issue was discovered in GNOME GLib before 2.66.8

- Severity: Medium 5.3 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-19T22:31:43.957Z
- Modified: 2026-07-23T22:30:15.031Z
- Related: CVE-2021-28153

## Description

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.)

(As written by Julia Security Advisories.)

## Affected

- Glib_jll (Julia): before 2.68.1+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Julia Security Advisories: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://gitlab.gnome.org/GNOME/glib/-/issues/2325> (web)
- <https://lists.debian.org/debian-lts-announce/2022/06/msg00006.html> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6RXTD5HCP2K4AAUSWWZTBKQNHRCTAEOF/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ICUTQPHZNZWX2DZR46QFLQZRHVMHIILJ/> (web)
- <https://security.gentoo.org/glsa/202107-13> (web)
- <https://security.netapp.com/advisory/ntap-20210416-0003/> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-158](https://osv.dev/vulnerability/JLSEC-2025-158), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/JLSEC-2025-158 · Whole record: https://cve.day/JLSEC-2025-158.json · Rebuilt by cve.day 2026-11-25T22:56:25.754Z
