SixLabors ImageSharp
ImageSharp: ICC LUT16 output channel count can write beyond Vector4
ImageSharp is a 2D graphics library. From 4.0.0 until 4.1.2, ICC LUT16 conversion accepts more than four output channels even though ClutCalculator.Calculate and LutEntryCalculator.CalculateLut store intermediate and output values in Vector4. When DecoderOptions.ColorProfileHandling is set to Convert, a malformed embedded profile can direct interpolation and output-LUT operations to write one float per declared channel beyond the four-float destination. This can corrupt memory and terminate the process; the default Preserve mode does not run ICC conversion. This issue is fixed in version 4.1.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.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/b03f0ed…
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.