# JLSEC-2025-156: An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.024Z
- Related: CVE-2021-27218

## Description

An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4. If `g_byte_array_new_take()` was called with a buffer of 4GB or more on a 64-bit platform, the length would be truncated modulo 2**32, causing unintended length truncation.

(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:N/A:P`
- Julia Security Advisories: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1942> (web)
- <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1944> (web)
- <https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E> (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/2REA7RVKN7ZHRLJOEGBRQKJIPZQPAELZ/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JJMPNDO4GDVURYQFYKFOWY5HAF4FTEPN/> (web)
- <https://security.gentoo.org/glsa/202107-13> (web)
- <https://security.netapp.com/advisory/ntap-20210319-0004/> (web)

## Sources

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

---

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