Memory Allocation with Excessive Size Value Affecting sixlabors.imagesharp package, versions [,2.1.8) [3.0.0, 3.1.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (19th 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-DOTNET-SIXLABORSIMAGESHARP-6615679
  • published 16 Apr 2024
  • disclosed 15 Apr 2024
  • credit Johan Åhlgren

How to fix?

Upgrade SixLabors.ImageSharp to version 2.1.8, 3.1.4 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value due to the processing of specially crafted files that can lead to excessive memory usage in image decoders. This flaw can be exploited to deplete process memory, causing a denial of service and affecting applications and services that rely on the library for image processing tasks.

CVSS Scores

version 3.1
Expand this section

Snyk

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