CVE-2025-27598: Out-of-bounds Write in SixLabors ImageSharp

Published Mar 6, 2025
·
Updated

Impact An Out-of-bounds Write vulnerability has been found in the ImageSharp gif decoder, allowing attackers to cause a crash using a specially crafted gif. This can potentially lead to denial of service.

Patches The problem has been patched. All users are advised to upgrade to v3.1.7 or v2.1.10.

Workarounds None.

References https://github.com/SixLabors/ImageSharp/issues/2859 https://github.com/SixLabors/ImageSharp/issues/2890

Other sources

ImageSharp is a 2D graphics API. An Out-of-bounds Write vulnerability has been found in the ImageSharp gif decoder, allowing attackers to cause a crash using a specially crafted gif. This can potentially lead to denial of service. The problem has been patched. All users are advised to upgrade to v3.1.7 or v2.1.10.

— MITRE

Affected Software

5 affected componentsFixes available
SixLabors ImageSharp<3.1.7, <2.1.10
nuget/SixLabors.ImageSharp<2.1.10
2.1.10
nuget/SixLabors.ImageSharp>=3.0.0<3.1.7
3.1.7
SixLabors ImageSharp<2.1.10
SixLabors ImageSharp>=3.0.0<3.1.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nuget/SixLabors.ImageSharp to a version that resolves this vulnerability.

    Fixed in 2.1.10
  2. Upgrade

    Upgrade nuget/SixLabors.ImageSharp to a version that resolves this vulnerability.

    Fixed in 3.1.7
  3. Upgrade

    Upgrade SixLabors ImageSharp to a version that resolves this vulnerability.

    Fixed in 3.1.7
  4. Upgrade

    Upgrade SixLabors ImageSharp to a version that resolves this vulnerability.

    Fixed in 2.1.10

Event History

Mar 6, 2025
CVE Published
via MITRE·10:23 PM
Data Sourced
via MITRE·10:23 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·10:23 PM
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-27598?

CVE-2025-27598 has a severity rating that indicates it can lead to denial of service.

2

How do I fix CVE-2025-27598?

To fix CVE-2025-27598, update to ImageSharp version 3.1.8 or later, or version 2.1.11 or later.

3

What causes CVE-2025-27598?

CVE-2025-27598 is caused by an out-of-bounds write vulnerability in the ImageSharp gif decoder.

4

What versions of ImageSharp are affected by CVE-2025-27598?

Versions up to 3.1.7 and 2.1.10 of ImageSharp are affected by CVE-2025-27598.

5

Can CVE-2025-27598 be exploited remotely?

Yes, CVE-2025-27598 can be exploited remotely using a specially crafted gif file.

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