CVE-2024-41132
JSON

5.3medium

SixLabors ImageSharp Allows Excessive Memory Allocation in Gif Decoder

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.77% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-qxrv-gp6x-rc23

Description

ImageSharp is a 2D graphics API. A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in the Gif decoder. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. All users are advised to upgrade to v3.1.5 or v2.1.9.

Affected

Product or packageVersionsReported by
SixLabors ImageSharp< 2.1.9, >= 3.0.0, < 3.1.5, before 2.1.9, from 3.0.0 before 3.1.5, from 2.1.0 before 2.1.9, from 3.1.0 before 3.1.5CVE List, NVD
SixLabors.ImageSharp (NuGet)before 2.1.9, from 3.0.0 before 3.1.5GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770CWE-789

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

ImageSharp is a 2D graphics API. A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in the Gif decoder. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. All users are advised to upgrade to v3.1.5 or v2.1.9.

GitHub Advisory Database
Impact

What kind of vulnerability is it? Who is impacted?

A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in the Gif decoder. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw.

Patches

Has the problem been patched? What versions should users upgrade to?

The problem has been patched. All users are advised to upgrade to v3.1.5 or v2.1.9.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Before calling Image.Decode(Async), use Image.Identify to determine the image dimensions in order to enforce a limit.

References

Are there any links users can visit to find out more?

NVD (es)

ImageSharp es una API de gráficos 2D. Una vulnerabilidad descubierta en la librería ImageSharp, donde el procesamiento de archivos especialmente manipulados puede provocar un uso excesivo de memoria en el decodificador Gif. La vulnerabilidad se activa cuando ImageSharp intenta procesar archivos de imagen diseñados para explotar este fallo. Se recomienda a todos los usuarios que actualicen a v3.1.5 o v2.1.9.

References

https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-qxrv-gp6x-rc23vendor-advisory, web
https://github.com/SixLabors/ImageSharp/pull/2759issue-tracking, web
https://github.com/SixLabors/ImageSharp/pull/2764issue-tracking, web
https://github.com/SixLabors/ImageSharp/pull/2770issue-tracking, web
https://github.com/SixLabors/ImageSharp/commit/59de13c8cc47f2b402e2c43aa7024511d029d515patch, web
https://github.com/SixLabors/ImageSharp/commit/9816ca45016c5d3859986f3c600e8934bc450a56patch, web
https://github.com/SixLabors/ImageSharp/commit/b496109051cc39feee1f6cde48fca6481de17f9apatch, web
https://docs.sixlabors.com/articles/imagesharp.web/processingcommands.html#securing-processing-commandsproduct, web
https://docs.sixlabors.com/articles/imagesharp/security.htmlproduct, web
https://nvd.nist.gov/vuln/detail/CVE-2024-41132advisory
https://github.com/SixLabors/ImageSharppackage

Sources

SourceRecordLicence
CVE ListCVE-2024-41132 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-qxrv-gp6x-rc23 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-41132 changed 2026-06-17Public domain