Integer Overflow or Wraparound Affecting glib package, versions [2.75.3,2.84.3)[2.85.0,2.85.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (18th 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-UNMANAGED-GLIB-10735608
  • published14 Jul 2025
  • disclosed13 Jun 2025
  • creditPhilip Withnall

Introduced: 13 Jun 2025

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

How to fix?

Upgrade glib to version 2.84.3, 2.85.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the g_string_maybe_expand function. An attacker can cause a crash or memory corruption by appending untrusted input to a GString without proper size checks, potentially resulting in denial of service.

Note:

This is only exploitable if unusually large string allocations are permitted and untrusted input is appended to a GString without size validation.

CVSS Base Scores

version 4.0
version 3.1