Rhai stack overflow vulenrability
Date: 2024-06
Affected: rust/rhai
Attack vector: other
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-36760
CWE: CWE-120
CWE-674
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

A stack overflow vulnerability was found in version 1.18.0 of rhai. The flaw position is: (/ SRC/rhai/SRC/eval/STMT. Rs in rhai: : eval: : STMT: : _ $LT $impl $u20 $rhai.. engine.. Engine$GT$::eval_stmt::h3f1d68ce37fc6e96). Due to the stack overflow is a recursive call/SRC/rhai/SRC/eval/STMT. Rs file eval_stmt_block function.


Mitigations:

Architectural layers (MAESTRO):