Incorrect Conversion between Numeric Types Affecting glib2.0 package, versions <2.66.7-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
4.69% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-GLIB20-11744057
  • published10 Aug 2025
  • disclosed15 Feb 2021

Introduced: 15 Feb 2021

CVE-2021-27218  (opens in a new tab)
CWE-681  (opens in a new tab)

How to fix?

Upgrade Debian:14 glib2.0 to version 2.66.7-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream glib2.0 package and not the glib2.0 package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1