CVE & CISA-KEV Catalog

CVE-2021-27218

HIGHEPSS 90th pctl
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
glib2Amazon
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
glib2-debuginfoAmazon
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
glib2-develAmazon
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
glib2-docAmazon
Fixed in:0:2.56.1-9.amzn2.0.2
glib2-famAmazon
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
glib2-staticAmazon
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
glib2-testsAmazon
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
Fixed in:0:2.56.1-9.amzn2.0.2
glib2.0Debian
Fixed in:2.66.7-1CVE-2021-27218
Fixed in:2.66.7-1CVE-2021-27218
Fixed in:2.66.7-1CVE-2021-27218
glib2.0Ubuntu
Fixed in:2.48.2-0ubuntu4.7USN-4759-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.56.4-0ubuntu0.18.04.7USN-4759-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.64.6-1~ubuntu20.04.2USN-4759-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

libglib2.0-0Ubuntu
Fixed in:2.48.2-0ubuntu4.7USN-4759-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.56.4-0ubuntu0.18.04.7USN-4759-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.64.6-1~ubuntu20.04.2USN-4759-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

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

Exploit Intelligence

4.08%probability of exploitation in 30 days
90thpercentile

High risk: more likely to be exploited than 90% of all known CVEs.

References

Related Vulnerabilities

Other CWE-681 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-34169High7.581%-Fix
CVE-2009-0231High8.837%--
CVE-2016-3074Critical9.837%-Fix
CVE-2008-1721High7.523%-Fix
CVE-2017-7308High7.818%-Fix
CVE-2022-43663High8.114%--

Common questions

How do I fix CVE-2021-27218?

Published advisories record a fix for 10 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-27218 being actively exploited?

Not that we know of. CVE-2021-27218 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 4.1% is the estimated probability that it will be exploited in the next 30 days. That is higher than 90% of all scored CVEs.

How severe is CVE-2021-27218?

CVE-2021-27218 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-27218 affect?

Published advisories record a fix for glib2 (Amazon), glib2-debuginfo (Amazon), glib2-devel (Amazon), glib2-doc (Amazon), and 6 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-27218
CVE-2021-27218 severity badge

Markdown

[![CVE-2021-27218](https://tridentstack.com/cve/badge/CVE-2021-27218.svg)](https://tridentstack.com/cve/CVE-2021-27218)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-27218"><img src="https://tridentstack.com/cve/badge/CVE-2021-27218.svg" alt="CVE-2021-27218"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.