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.

Published: 2021-02-15 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-27218 is rated Moderate Risk (56.4/100): CVSS High severity, with medium exploitation likelihood (EPSS 4.19%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2021-27218

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 10.49% 4.19% -6.30%
2 2026-05-28 5.21% 10.49% +5.28%
3 2025-12-28 5.21%

Full EPSS history (41 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-27218

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 3.6 [email protected]
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2021-27218

OS Trackers for CVE-2021-27218

vendor priority summary link
alpine high CVE-2021-27218: 1 source package rows (glib); 18 state rows across 8 repos (3.10-main, 3.11-main, 3.12-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 0, open 18. https://security.alpinelinux.org/vuln/CVE-2021-27218
debian not yet assigned CVE-2021-27218 not yet assigned priority: Debian including 1 source packages (glib2.0), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-27218
gentoo normal CVE-2021-27218: 1 GLSA(s) (202107-13), 1 atom(s) (dev-libs/glib); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-27218
redhat medium https://access.redhat.com/security/cve/CVE-2021-27218
suse medium CVE-2021-27218 severity moderate: SUSE including 539 source package names (0.1.0:libglib-2_0-0-2.54.3-4.24.1, 0.1.75:glib2-tools-2.54.3-4.24.1, …), 1330 product×package rows across 213 product lines (Container bci/bci-init, Container bci/golang, … (213 product lines)): Fixed 1191, Known Affected 135, Known Not Affected 4. https://www.suse.com/security/cve/CVE-2021-27218/
ubuntu medium CVE-2021-27218 medium priority: Ubuntu including 1 source packages (glib2.0), 16 status rows across 16 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 10, released 5, needed 1. https://ubuntu.com/security/CVE-2021-27218

Affected software / configurations for CVE-2021-27218

Vendor Product Version Raw CPE
gnome glib < 2.66.7 cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*
gnome glib >= 2.67.0, < 2.67.4 cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*
fedoraproject fedora 33 cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
netapp active_iq_unified_manager cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
netapp cloud_backup cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:*
netapp e-series_performance_analyzer cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*
broadcom brocade_fabric_operating_system_firmware cpe:2.3:o:broadcom:brocade_fabric_operating_system_firmware:-:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

References for CVE-2021-27218

URL Tags
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1942 Patch Vendor Advisory
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1944 Patch Vendor Advisory
https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
https://lists.debian.org/debian-lts-announce/2022/06/msg00006.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2REA7RVKN7ZHRLJOEGBRQKJIPZQPAELZ/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JJMPNDO4GDVURYQFYKFOWY5HAF4FTEPN/
https://security.gentoo.org/glsa/202107-13 Third Party Advisory
https://security.netapp.com/advisory/ntap-20210319-0004/ Third Party Advisory
cvelogic Threat Intelligence