Z2D · Z2D · CVE-2025-46333
**Name of the Vulnerable Software and Affected Versions**
z2d version 0.6.0
**Description**
The issue arises when using `z2d.compositor.StrideCompositor.run` to write from one surface to another, allowing the source surface to be completely out-of-bounds on the x-axis due to a negative offset. This results in an overflow of the value controlling the length of the stride. In non-safe optimization modes, such as compiling with `ReleaseFast` or `ReleaseSmall`, this could potentially lead to invalid memory accesses or corruption.
**Recommendations**
For version 0.6.0, update to version 0.6.1 to resolve the issue. As a temporary workaround, consider avoiding the use of negative offsets when writing from one surface to another using `z2d.compositor.StrideCompositor.run` until the update is applied.