SixLabors ImageSharp
ImageSharp: HistogramEqualization uses an unvalidated luminance as an unchecked histogram index
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<HalfVector4> 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.0.0, < 4.1.2
Fixed in 4.1.2
Mitigation
Upgrade ImageSharp to 4.1.2 or later.
References
- Vendor advisory github.com/SixLabors/ImageSharp/security/advis…
- Patch github.com/SixLabors/ImageSharp/pull/3187
- Patch github.com/SixLabors/ImageSharp/commit/c4c4bf2…
1 more
- Release notes github.com/SixLabors/ImageSharp/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.