CVE-2024-32035: Memory Allocation with Excessive Size Value in SixLabors.ImageSharp

Published Apr 15, 2024
·
Updated

Impact

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

This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation.

Patches

The problem has been patched. All users are advised to upgrade to v3.1.4 or v2.1.8.

Workarounds

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

References

- ImageSharp: Security Considerations - ImageSharp.Web: Securing Processing Commands

Other sources

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 image decoders. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation. The problem has been patched in v3.1.4 and v2.1.8.

— MITRE

Affected Software

4 affected componentsFixes available
nuget/SixLabors.ImageSharp>=3.0.0<3.1.4
3.1.4
nuget/SixLabors.ImageSharp<2.1.8
2.1.8
SixLabors ImageSharp<2.1.8
SixLabors ImageSharp>=3.0.0<3.1.4

Event History

Apr 15, 2024
CVE Published
via MITRE·07:59 PM
Data Sourced
via MITRE·07:59 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:22 PM
Sep 17, 56274
Event
via FIRST·06:23 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-32035?

CVE-2024-32035 is classified as a vulnerability that can cause excessive memory usage in image decoders.

2

How do I fix CVE-2024-32035?

To fix CVE-2024-32035, update the SixLabors.ImageSharp library to version 3.1.4 or later if you are using version 3.0.0 or earlier, or update to version 2.1.8 or later if you are using an earlier version.

3

What software is affected by CVE-2024-32035?

CVE-2024-32035 affects all versions of the SixLabors.ImageSharp library from 2.1.8 and below or between 3.0.0 and 3.1.4.

4

What type of vulnerability is CVE-2024-32035?

CVE-2024-32035 is a memory consumption vulnerability due to improper handling of specially crafted image files.

5

Can CVE-2024-32035 be exploited remotely?

Yes, CVE-2024-32035 can potentially be exploited remotely through the upload or processing of malicious image files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203