Description
ImageSharp is a 2D graphics library. From 4.0.0 until 4.1.2, ExrBaseDecompressor.UndoZipCompression accepts a nonempty ZIP or ZIPS inflate result that is shorter than the EXR block's required size. ZipExrCompression.Decompress reconstructs the returned prefix while ExrDecoderCore processes the full expected block from a buffer obtained through Configuration.Default, allowing bytes retained from a completed prior ImageSharp operation to appear in decoded pixels. Applications that expose pixels or output from the later attacker-controlled EXR decode can disclose process-local image data. This issue is fixed in version 4.1.2.
Affected products
sixlabors: imagesharp
References6
- github.com/SixLabors/ImageSharp/security/advisories/GHSA-4q3p-r… ExploitVendor Advisory
- github.com/SixLabors/ImageSharp/security/advisories/GHSA-4q3p-r… ExploitVendor Advisory
- github.com/SixLabors/ImageSharp/commit/3c43cf583fdd98eff0f45139… Patch
- github.com/SixLabors/ImageSharp/commit/6ed2a275217d39301e76df42… Patch
- github.com/SixLabors/ImageSharp/pull/3187 Issue TrackingPatch
- github.com/SixLabors/ImageSharp/releases/tag/v4.1.2 Release Notes
Metrics
- CVSS 3.1
-
5.3
MEDIUM
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - EPSS — exploit probability
- 0% percentile: 21 · as of 10 November 2026
- CWE
- CWE-226
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.