# CVE-2021-27218

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-02-15 · Modified: 2026-10-14
- Aliases: ALPINE-CVE-2021-27218, RHSA-2021:3058, UBUNTU-CVE-2021-27218, DEBIAN-CVE-2021-27218
- Record: https://cvemate.com/vulnerability/CVE-2021-27218 · JSON: https://cvemate.com/vulnerability/CVE-2021-27218/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 3.436%, percentile 89.33%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 21)

- alpine glib (Alpine Linux): ≥ 2.67.0, \< 2.66.7-r0 \| \< 2.66.7-r0
- broadcom brocade\_fabric\_operating\_system\_firmware: na
- debian glib2.0 (Debian): \< 2.66.7-1
- ubuntu glib2.0 (Ubuntu): All versions (No fix recorded) \| \< 2.48.2-0ubuntu4.7 \| \< 2.56.4-0ubuntu0.18.04.7 \| \< 2.64.6-1~ubuntu20.04.2
- debian debian\_linux: 9.0
- fedoraproject fedora: 33 \| 34
- gnome glib: \< 2.66.7 \| ≥ 2.67.0, \< 2.67.4
- netapp active\_iq\_unified\_manager: na
- netapp cloud\_backup: na
- netapp e-series\_performance\_analyzer: na
- redhat glib2 (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-debugsource (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-devel (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-devel-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-doc (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-fam (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-fam-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-static (Red Hat): \< 0:2.56.4-10.el8\_4.1
- redhat glib2-tests (Red Hat): \< 0:2.56.4-10.el8\_4.1

## References (first 20 of 22)

- <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1942>
- <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1944>
- <https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2REA7RVKN7ZHRLJOEGBRQKJIPZQPAELZ/>
- <https://security.netapp.com/advisory/ntap-20210319-0004/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JJMPNDO4GDVURYQFYKFOWY5HAF4FTEPN/>
- <https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E>
- <https://security.gentoo.org/glsa/202107-13>
- <https://lists.debian.org/debian-lts-announce/2022/06/msg00006.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-27218>
- <https://access.redhat.com/errata/RHSA-2021:3058>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1929847>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3058.json>
- <https://access.redhat.com/security/cve/CVE-2021-27218>
- <https://www.cve.org/CVERecord?id=CVE-2021-27218>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27218>
- <https://ubuntu.com/security/CVE-2021-27218>
- <https://ubuntu.com/security/notices/USN-4759-1>

---

Data as of 2026-12-05T08:25:03.242Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
