CVE-2025-55286

Source
https://cve.org/CVERecord?id=CVE-2025-55286
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-55286.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-55286
Aliases
  • GHSA-2vq8-cp8r-vcf3
Published
2025-08-16T01:02:44.627Z
Modified
2026-04-02T12:54:48.351974Z
Severity
  • 7.3 (High) CVSS_V4 - CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H CVSS Calculator
Summary
z2d OOB drawing with new multi-sample anti-aliasing could lead to invalid memory access and corruption
Details

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 .multisample4x anti-aliasing modes were used. .supersample4x 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.

Database specific
{
    "cwe_ids": [
        "CWE-119",
        "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/55xxx/CVE-2025-55286.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/vancluever/z2d

Affected ranges

Type
GIT
Repo
https://github.com/vancluever/z2d
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*
v0.1.0
v0.2.0
v0.3.0
v0.3.1
v0.4.0
v0.5.0
v0.5.1
v0.6.0
v0.6.1
v0.6.2
v0.7.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-55286.json"