Home / Gnome / Glib / CVE-2021-27218
CVE-2021-27218: is it exploited, and which versions of Gnome Glib are affected and fixed?
CVE-2021-27218 is an incorrect numeric conversion vulnerability in Gnome Glib. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: glib before 2.66.7, glib from 2.67.0 before 2.67.4, fedora 33 and 6 more (NVD). Fixed in 2.66.7 and 2.67.4 (NVD). Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 08:03 UTC.
What is CVE-2021-27218?
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.
From the CVE record by mitre, last updated October 14, 2026, 11:34 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gnome | glib | before 2.66.7 | application |
| gnome | glib | from 2.67.0 before 2.67.4 | application |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
| netapp | active iq unified manager | all versions | application |
| netapp | cloud backup | all versions | application |
| netapp | e-series performance analyzer | all versions | application |
| broadcom | brocade fabric operating system firmware | all versions | operating system |
| debian | debian linux | 9.0 | operating system |
NVD analysis (status Modified), last modified October 14, 2026, 12:17 UTC.
How severe is CVE-2021-27218?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-27218 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.44% probability of exploitation activity in the next 30 days, percentile 89.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-681 Incorrect Conversion between Numeric Types
Where are the vendor advisories and references?
- https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1942 x_refsource_MISC
- https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1944 x_refsource_MISC
- [mina-dev] 20210225 [jira] [Created] (FTPSERVER-500) Security vulnerability in common/lib/log4j-1.2.17.jar mailing-list, x_refsource_MLIST
- FEDORA-2021-7c71cda8da vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20210319-0004/ x_refsource_CONFIRM
- FEDORA-2021-7b5e2e6844 vendor-advisory, x_refsource_FEDORA
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list, x_refsource_MLIST
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list, x_refsource_MLIST
- GLSA-202107-13 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20220606 [SECURITY] [DLA 3044-1] glib2.0 security update mailing-list, x_refsource_MLIST
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
When was it published, and where is the official record?
- Reserved
- February 15, 2021
- Published
- February 15, 2021, 16:27 UTC
- CVE record updated
- October 14, 2026, 11:34 UTC by mitre
- NVD
- Modified, last modified October 14, 2026, 12:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 08:03 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Glib?
- Jun 30, 2026CVE-2026-58016 GNOME GLib: integer underflow
- Jun 30, 2026CVE-2026-58015 GNOME GLib: path traversal (reading or writing files outside the intended folder)
- Jun 30, 2026CVE-2026-58014 GNOME GLib: off-by-one Error
- Jun 30, 2026CVE-2026-58013 GNOME GLib: buffer Over-read
- Jun 30, 2026CVE-2026-58012 GNOME GLib: buffer Over-read
- Jun 30, 2026CVE-2026-58011 GNOME GLib: out-of-bounds read
- Jun 30, 2026CVE-2026-58010 GNOME GLib: buffer Over-read
- Dec 11, 2025CVE-2025-14512 GNOME glib: integer overflow
Questions about CVE-2021-27218
Is CVE-2021-27218 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 3.44% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Gnome Glib are affected by CVE-2021-27218?
glib before 2.66.7, glib from 2.67.0 before 2.67.4, fedora 33, fedora 34, active iq unified manager all versions, cloud backup all versions and 3 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-27218?
2.66.7 and 2.67.4, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-27218?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-27218?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.