Intel

AIKIDO-2026-218384

OpenCvSharp4.Extensions is vulnerable to Out-of-bounds Write

GHSA-7ppc-pv8r-x59gPublished 4 days ago
November 16, 2026

65

CVE Score

Medium

Out-of-bounds Write

Are you affected? Scan for Free

TL;DR

On Windows, BitmapConverter.ToMat converts 8-bit indexed GDI+ bitmaps into a Mat. When the source row has GDI+ padding, the conversion copies padding bytes past the destination row and can write beyond the Mat buffer, corrupting memory or terminating the process. The fix copies only the logical pixel width of each row.

How do I fix this?

Upgrade the OpenCvSharp4.Extensions library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and convert user controlled 8-bit indexed bitmaps through BitmapConverter.ToMat on Windows.

Versions

4.2.0.20191223 - 4.13.0.20260627

Fixed in 4.13.0.20261107

Background info

OpenCvSharp4.Extensions is vulnerable to Out-of-bounds Write in versions 4.2.0.20191223 - 4.13.0.20260627.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea