Out-of-bounds Read Affecting libgd2 package, versions <2.2.5-4ubuntu0.5+esm3


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.14% (51st 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-UBUNTU1804-LIBGD2-1583946
  • published9 Sept 2021
  • disclosed8 Sept 2021

Introduced: 8 Sep 2021

CVE-2021-40812  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 libgd2 to version 2.2.5-4ubuntu0.5+esm3 or higher.

NVD Description

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

The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.

CVSS Scores

version 3.1