Integer Overflow or Wraparound Affecting glib2-devel package, versions <0:2.82.2-766.amzn2023


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.08% (23rd 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 Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-GLIB2DEVEL-10694787
  • published11 Jul 2025
  • disclosed13 Jun 2025

Introduced: 13 Jun 2025

CVE-2025-6052  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 glib2-devel to version 0:2.82.2-766.amzn2023 or higher.
This issue was patched in ALAS2023-2025-1069.

NVD Description

Note: Versions mentioned in the description apply only to the upstream glib2-devel package and not the glib2-devel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

A flaw was found in how GLib’s GString manages memory when adding data to strings. If a string is already very large, combining it with more input can cause a hidden overflow in the size calculation. This makes the system think it has enough memory when it doesn’t. As a result, data may be written past the end of the allocated memory, leading to crashes or memory corruption.

CVSS Base Scores

version 3.1