Stack-based Buffer Overflow Affecting glib2 package, versions <0:2.56.1-2.el7


Severity

Recommended
medium

Based on CentOS security rating.

Threat Intelligence

EPSS
0.56% (79th 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-CENTOS7-GLIB2-2129145
  • published26 Jul 2021
  • disclosed5 May 2018

Introduced: 5 May 2018

CVE-2018-10767  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade Centos:7 glib2 to version 0:2.56.1-2.el7 or higher.

NVD Description

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

There is a stack-based buffer over-read in calling GLib in the function gxps_images_guess_content_type of gxps-images.c in libgxps through 0.3.0 because it does not reject negative return values from a g_input_stream_read call. A crafted input will lead to a remote denial of service attack.