# CVE-2026-77347: Pozeiden: Out-of-bounds read/write (crash / memory corruption) on valid diagrams in grid-layout renderers

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-11-20T18:11:10.750Z
- Modified: 2026-11-20T19:18:54.780Z
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Pozeiden is a MermaidJS renderer written in Zig. Prior to 0.3.0, src/renderers/c4.zig, src/renderers/class.zig, src/renderers/er.zig, and src/renderers/requirement.zig use fixed row-layout arrays while deriving subsequent loop bounds from an untrusted diagram's actual item count, and src/renderers/state.zig indexes a fixed depth array using user-controlled nesting depth. A valid diagram with at least 193 grid items can make the row count exceed the 64-row storage, while a deeply nested state diagram can exceed the col_count depth storage through the public pozeiden.render() path. Safe CLI and ReleaseSafe builds abort the rendering process, enabling reliable denial of service in applications that render untrusted diagrams. ReleaseSmall WASM builds with safety checks disabled instead perform out-of-bounds stack reads or writes, creating a memory-safety violation. This issue is fixed in version 0.3.0.

(As written by CVE List.)

## Affected

- sc2in pozeiden: < 0.3.0

## References

- <https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p>
- <https://github.com/sc2in/pozeiden/commit/a48c3b11d74e485409644420739a6d61cd395ed3>
- <https://github.com/sc2in/pozeiden/releases/tag/v0.3.0>

## Sources

- CVE List: [CVE-2026-77347](https://www.cve.org/CVERecord?id=CVE-2026-77347), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-77347](https://nvd.nist.gov/vuln/detail/CVE-2026-77347), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-77347 · Whole record: https://cve.day/CVE-2026-77347.json · Rebuilt by cve.day 2026-11-25T22:59:52.459Z
