CVE-2025-55286 Details
Description
z2d is a pure Zig 2D graphics library. z2d v0.7.0 released with a new multi-sample anti-aliasing (MSAA) method, which uses a new buffering mechanism for storing coverage data. This differs from the standard alpha mask surface used for the previous super-sample anti-aliasing (SSAA) method. Under certain circumstances where the path being drawn existed in whole or partly outside of the rendering surface, incorrect bounding could cause out-of-bounds access within the coverage buffer. This affects the higher-level drawing operations, such as Context.fill, Context.stroke, painter.fill, and painter.stroke, when either the .default or .multisample_4x anti-aliasing modes were used. .supersample_4x was not affected, nor was drawing without anti-aliasing. In non-safe optimization modes (consumers compiling with ReleaseFast or ReleaseSmall), this could potentially lead to invalid memory accesses or corruption. z2d v0.7.1 fixes this issue, and it's recommended to upgrade to v0.7.1, or, given the small period of time v0.7.0 has been released, use v0.7.1 immediately, skipping v0.7.0.
A vulnerability in the z2d graphics library version 0.7.0 allows for out-of-bounds access in the coverage buffer when using the new multi-sample anti-aliasing (MSAA) method. This issue arises under certain conditions where the drawn path partially or completely extends beyond the rendering surface, leading to incorrect bounding and potential invalid memory access or corruption, especially in non-safe optimization modes. The vulnerability affects higher-level drawing operations such as Context.fill, Context.stroke, painter.fill, and painter.stroke, when the .default or .multisample_4x anti-aliasing modes are applied. The problem has been addressed in z2d version 0.7.1, and users are advised to upgrade immediately.
Users are recommended to upgrade to z2d version 0.7.1, which addresses this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 16, 2025CISA-ADP
Assessed Aug 18, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vancluever/z2d/commit/93e45d36af53cda0d7f454ed8440713b7ac155b6 | [email protected] | Source CodeVendor |
| https://github.com/vancluever/z2d/pull/137 | [email protected] | Issue TrackingVendor |
| https://github.com/vancluever/z2d/security/advisories/GHSA-2vq8-cp8r-vcf3 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vancluever z2d | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 16, 2025 | New CVE Received | [email protected] |
Volerion