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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.15% (53rd 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 ID SNYK-GOLANG-GITHUBCOMGOLANGIMAGETIFF-5816824
  • published 3 Aug 2023
  • disclosed 2 Aug 2023
  • credit Philippe Antoine

How to fix?

Upgrade github.com/golang/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
Expand this section

Snyk

Recommended
4.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    Low
Expand this section

NVD

6.5 medium