Description
ImageSharp is a 2D graphics library. From 2.0.0 until 4.1.2, decoding an attacker-supplied 32-bit floating-point TIFF as Image and applying HistogramEqualization can produce a non-finite or out-of-range luminance in ColorNumerics.GetBT709Luminance. GrayscaleLevelsRowOperation.Invoke uses the resulting value as an unchecked histogram offset, causing an unsafe out-of-range access and process termination. Adaptive Histogram Equalization and AutoLevel are not affected by this report. This issue is fixed in version 4.1.2.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-787 — CWE-787: Out-of-bounds Write
Affected products
| Vendor | Product | Versions |
|---|---|---|
| SixLabors | ImageSharp | >= 2.0.0, < 4.1.2 |
References
- https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-j3p4-wp97-rph4 (x_refsource_CONFIRM)
- https://github.com/SixLabors/ImageSharp/pull/3187 (x_refsource_MISC)
- https://github.com/SixLabors/ImageSharp/commit/c4c4bf292298c026df470db1a17ff826515fd95d (x_refsource_MISC)
- https://github.com/SixLabors/ImageSharp/releases/tag/v4.1.2 (x_refsource_MISC)
Generated from the official CVE List on 07 Oct 2026 10:16 UTC.