CVE-2021-27218

Summary

CVECVE-2021-27218
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-02-15 17:15:13 UTC
Updated2026-10-14 12:17:10 UTC
DescriptionAn 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.

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-681 | n/a


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
2.0[email protected]Primary5AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
None
Integrity
None
Availability
Partial

AV:N/AC:L/Au:N/C:N/I:N/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Gnome Glib All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified

References

ReferenceSourceLinkTags
cert-portal.siemens.com/productcert/html/ssa-398330.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
[SECURITY] Fedora 34 Update: mingw-glib2-2.66.7-1.fc34 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e69... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
[SECURITY] Fedora 33 Update: mingw-glib2-2.66.7-1.fc33 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] [DLA 3044-1] glib2.0 security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
CVE-2021-27218: gbytearray: Do not accept too large byte arrays (!1942) · Merge Requests · GNOME / GLib · GitLab af854a3a-2127-422b-91ae-364da2661108 gitlab.gnome.org Patch, Vendor Advisory
lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685a... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
GLib: Multiple vulnerabilities (GLSA 202107-13) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
February 2021 GNOME GLib Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
Backport !1942 “CVE-2021-27218: gbytearray: Do not accept too large byte arrays” to glib-2-66 (!1944) · Merge Requests · GNOME / GLib · GitLab af854a3a-2127-422b-91ae-364da2661108 gitlab.gnome.org Patch, Vendor Advisory
[SECURITY] Fedora 34 Update: mingw-glib2-2.66.7-1.fc34 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
[SECURITY] Fedora 33 Update: mingw-glib2-2.66.7-1.fc33 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 159330 Oracle Enterprise Linux Security Update for glib2 (ELSA-2021-3058)
  • 174791 SUSE Enterprise Linux Security update for glib2 (SUSE-SU-2021:0778-1)
  • 174826 SUSE Enterprise Linux Security update for glib2 (SUSE-SU-2021:0890-1)
  • 179358 Debian Security Update for glib2.0 (DLA 3044-1)
  • 179683 Debian Security Update for glib2.0 (CVE-2021-27218)
  • 239540 Red Hat Update for glib2 (RHSA-2021:3058)
  • 281538 Fedora Security Update for mingw (FEDORA-2021-7b5e2e6844)
  • 281539 Fedora Security Update for mingw (FEDORA-2021-7c71cda8da)
  • 352856 Amazon Linux Security Advisory for glib2: ALAS2-2021-1711
  • 377338 Alibaba Cloud Linux Security Update for glib2 (ALINUX3-SA-2021:0055)
  • 501414 Alpine Linux Security Update for glib
  • 670287 EulerOS Security Update for glib2 (EulerOS-SA-2021-1789)
  • 670326 EulerOS Security Update for glib2 (EulerOS-SA-2021-1898)
  • 670353 EulerOS Security Update for glib2 (EulerOS-SA-2021-1871)
  • 670380 EulerOS Security Update for glib2 (EulerOS-SA-2021-1945)
  • 670401 EulerOS Security Update for glib2 (EulerOS-SA-2021-1924)
  • 670615 EulerOS Security Update for glib2 (EulerOS-SA-2021-2373)
  • 710063 Gentoo Linux GLib Multiple vulnerabilities (GLSA 202107-13)
  • 750321 OpenSUSE Security Update for glib2 (openSUSE-SU-2021:0406-1)
  • 900161 CBL-Mariner Linux Security Update for glib 2.58.0
  • 901414 Common Base Linux Mariner (CBL-Mariner) Security Update for glib (6437-1)
  • 902931 Common Base Linux Mariner (CBL-Mariner) Security Update for glib (3893)
  • 940021 AlmaLinux Security Update for glib2 (ALSA-2021:3058)
  • 940356 AlmaLinux Security Update for mingw-glib2 (ALSA-2021:4526)
  • 960031 Rocky Linux Security Update for glib2 (RLSA-2021:3058)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report