Allocation of Resources Without Limits or Throttling Affecting golang.org/x/image/tiff package, versions <0.10.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (52nd 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-GOLANG-GOLANGORGXIMAGETIFF-5816822
  • published3 Aug 2023
  • disclosed2 Aug 2023
  • creditPhilippe Antoine

Introduced: 2 Aug 2023

CVE-2023-29408  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade golang.org/x/image/tiff to version 0.10.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the Decode() and DecodeConfig() functions. The TIFF decoder does not place a limit on the size of compressed tile data. An attacker can exploit this by sending a small image (both in terms of pixel width/height, and encoded size) to make the decoder decode large amounts of compressed data, consuming excessive memory and CPU.

CVSS Scores

version 3.1