cve.bz

CVE-2021-27218

7.5 highEPSS 4.1%Fix available

High (7.5). EPSS 4.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
4.1% (unchanged from 4.1% a week ago; 4.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-681 Incorrect Conversion between Numeric Types
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-27218 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27218?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27218?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-27218 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-27218

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

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

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnome:glibbefore 2.66.7
gnome:glibfrom 2.67.0 before 2.67.4
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9glib2.02.50.3-2+deb9u3DLA-3044-1
Debian12, 13, 14glib2.02.66.7-1DEBIAN-CVE-2021-27218
Ubuntu16.04:LTSglib2.02.48.2-0ubuntu4.7UBUNTU-CVE-2021-27218 USN-4759-1
Ubuntu18.04:LTSglib2.02.56.4-0ubuntu0.18.04.7UBUNTU-CVE-2021-27218 USN-4759-1
Ubuntu20.04:LTSglib2.02.64.6-1~ubuntu20.04.2UBUNTU-CVE-2021-27218 USN-4759-1
UbuntuPro:14.04:LTSglib2.0no fix listedUBUNTU-CVE-2021-27218
Red Hatenterprise_linux:8::baseosglib2, glib2-fam, glib2-devel and 6 more0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hatenterprise_linux:8::crbglib2-doc, glib2-static, glib2-debuginfo and 4 more0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hatenterprise_linux:8::crbmingw-glib2, mingw32-glib2, mingw64-glib2 and 4 more0:2.66.7-2.el8RHSA-2021:4526
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moreglib22.54.3-4.24.1SUSE-SU-2021:0890-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 15 moreglib22.48.2-12.22.1SUSE-SU-2021:0801-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2glib22.62.6-3.6.1SUSE-SU-2021:0778-1
openSUSELeap 15.2glib22.62.6-lp152.2.6.1openSUSE-SU-2021:0406-1
AlmaLinux8glib2-doc, glib2-static2.56.4-10.el8_4.1ALSA-2021:3058
AlmaLinux8mingw32-glib2, mingw64-glib2, mingw32-glib2-static and 1 more2.66.7-2.el8ALSA-2021:4526
Rocky Linux8glib20:2.56.4-10.el8_4.1RLSA-2021:3058
Alpinev3.13glib2.66.7-r0ALPINE-CVE-2021-27218
Azure Linux2glib2.60.1-5AZL-6437

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mingw-glib2-0:2.66.7-2.el8Fixed 2021-11-09RHSA-2021:4526
Red Hat Enterprise Linux 8glib2-0:2.56.4-10.el8_4.1Fixed 2021-08-10RHSA-2021:3058
Red Hat Enterprise Linux 6firefoxOut of support scope
Red Hat Enterprise Linux 6glib2Out of support scope
Red Hat Enterprise Linux 6thunderbirdOut of support scope
Red Hat Enterprise Linux 7glib2Out of support scope
Red Hat Enterprise Linux 9glib2Not affected
Red Hat Enterprise Linux 9mingw-glib2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-27218.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON