Out-of-bounds Write Affecting sixlabors.imagesharp package, versions [,2.1.10)[3.0.0,3.1.7)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept

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-DOTNET-SIXLABORSIMAGESHARP-9298862
  • published7 Mar 2025
  • disclosed6 Mar 2025
  • creditAndreas Eriksson

Introduced: 6 Mar 2025

NewCVE-2025-27598  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade SixLabors.ImageSharp to version 2.1.10, 3.1.7 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write through the gif decoder. An attacker can cause a crash using a specially crafted gif, potentially leading to denial of service by exploiting the out-of-bounds write condition.

PoC

using var image = Image.Load("corrupt.gif");

CVSS Base Scores

version 4.0
version 3.1