What’s Vulnerable › Vulnerabilities
CVE-2024-27929: Use After Free in SixLabors.ImageSharp
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-03-05 · updated 2026-06-17
- Weakness: CWE-416
Description
ImageSharp is a managed, cross-platform, 2D graphics library. A heap-use-after-free flaw was found in ImageSharp's InitializeImage() function of PngDecoderCore.cs file. This vulnerability is triggered when an attacker passes a specially crafted PNG image file to ImageSharp for conversion, potentially leading to information disclosure. This issue has been patched in versions 3.1.3 and 2.1.7.
Affected products
- SixLabors ImageSharp: before 2.1.7; from 3.1.0 before 3.1.3 — fixed in 2.1.7, 3.1.3
How to fix
Upgrade to a fixed version: SixLabors ImageSharp 2.1.7, 3.1.3. Check the vendor advisory for mitigations.
References
- https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-65x7-c272-7g7r
- https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-65x7-c272-7g7r
Get alerted when CVE-2024-27929 or the next vulnerability affects your stack