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 package | Versions | Reported 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.5 | CVE List, NVD |
| SixLabors.ImageSharp (NuGet) | before 2.1.9, from 3.0.0 before 3.1.5 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-41132 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qxrv-gp6x-rc23 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-41132 changed 2026-06-17 | Public domain |