Incorrect Conversion between Numeric Types Affecting glib package, versions <2.66.6-r0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
1.37% (81st 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-ALPINE313-GLIB-1253161
  • published22 Apr 2021
  • disclosed15 Feb 2021

Introduced: 15 Feb 2021

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

How to fix?

Upgrade Alpine:3.13 glib to version 2.66.6-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream glib package and not the glib package as distributed by Alpine. See How to fix? for Alpine:3.13 relevant fixed versions and status.

An issue was discovered in GNOME GLib before 2.66.6 and 2.67.x before 2.67.3. The function g_bytes_new has an integer overflow on 64-bit platforms due to an implicit cast from 64 bits to 32 bits. The overflow could potentially lead to memory corruption.

CVSS Base Scores

version 3.1