{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-46333","published":"2025-04-25T21:15:39.577000Z","last_modified":"2026-06-17T09:26:15.190000Z","status":"Deferred","cvss":{"version":"4.0","score":7.3,"severity":"HIGH","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-119","CWE-122","CWE-190"],"cpes":[],"cpes_truncated":false,"vendors":["vancluever"],"products":["vancluever/z2d"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":44,"links":{"html_es":"/es/cve/CVE-2025-46333/","html_en":"/en/cve/CVE-2025-46333/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-46333","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-46333"},"untrusted":{"vendor_name":"vancluever","product_name":"z2d","desc_en":"z2d is a pure Zig 2D graphics library. Versions of z2d after `0.5.1` and up to and including `0.6.0`, when writing from one surface to another using `z2d.compositor.StrideCompositor.run`, and higher-level operations when the anti-aliasing mode is set to `.default` (such as `Context.fill`, `Context.stroke`, `painter.fill`, and `painter.stroke`), the source surface can be completely out-of-bounds on the x-axis, but not on the y-axis, by way of a negative offset. This results in an overflow of the value controlling the length of the stride. In non-safe optimization modes (consumers compiling with `ReleaseFast` or `ReleaseSmall`), this could potentially lead to invalid memory accesses or corruption.\n\nThis issue is patched in version `0.6.1`. Users on an untagged version after `v0.5.1` and before `v0.6.1` are advised to update to address the vulnerability. Those still on Zig `0.13.0` are recommended to downgrade to `v0.5.1`.","affected":[{"untrusted_vendor":"vancluever","untrusted_product":"z2d","versions":[]}],"references":[{"url":"https://github.com/vancluever/z2d/issues/104","tags":[]},{"url":"https://github.com/vancluever/z2d/issues/105","tags":[]},{"url":"https://github.com/vancluever/z2d/security/advisories/GHSA-mm4c-p35v-7hx3","tags":[]}]}}