Skip to content
High 8.8

Pozeidenの脆弱性、細工した図の描画で異常終了やメモリ破壊のおそれ

CVE-2026-77347 First seen on SecPulse

Summary

Pozeidenは、MermaidJSの図をZigで描画するツールです。0.3.0より前のバージョンでは、有効な図を描画するとメモリ範囲外の読み書きが起きる脆弱性があり、サービス妨害(DoS)やメモリ破壊のおそれがあります。修正版の0.3.0で対応しているため、0.3.0以降へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Pozeidenは、MermaidJSの図をZigで描画するツールです。0.3.0より前のバージョンでは、有効な図を描画するとメモリ範囲外の読み書きが起きる脆弱性があり、サービス妨害(DoS)やメモリ破壊のおそれがあります。修正版の0.3.0で対応しているため、0.3.0以降へ更新してください。

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details