Lucene search

K
githubGitHub Advisory DatabaseGHSA-QXRV-GP6X-RC23
HistoryJul 22, 2024 - 5:42 p.m.

SixLabors ImageSharp has Excessive Memory Allocation in Gif Decoder

2024-07-2217:42:33
CWE-770
CWE-789
GitHub Advisory Database
github.com
3
vulnerability
imagesharp
excessive memory
gif decoder
patched
upgrade
workarounds

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

AI Score

6.7

Confidence

High

EPSS

0.003

Percentile

71.7%

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?

Affected configurations

Vulners
Node
sixlabors.imagesharpRange<3.1.5
OR
sixlabors.imagesharpRange<2.1.9
VendorProductVersionCPE
*sixlabors.imagesharp*cpe:2.3:a:*:sixlabors.imagesharp:*:*:*:*:*:*:*:*

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

AI Score

6.7

Confidence

High

EPSS

0.003

Percentile

71.7%

Related for GHSA-QXRV-GP6X-RC23