CVE-2024-36760: rhai · n/a
Affects rhaiSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iorhaipkg:cargo/rhaiOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-36760, organizations should prioritize upgrading Rhai to a version where this vulnerability is patched once it becomes available. In the interim, developers should audit their use of Rhai's eval_stmt_block function to identify and limit recursive script evaluations that could trigger stack overflow. Implementing input validation and recursion depth limits within scripts can reduce risk. Additionally, deploying runtime protections such as stack canaries, address space layout randomization (ASLR), and memory protection mechanisms can help mitigate exploitation impact. Network-level controls like firewall rules and intrusion detection systems should monitor and restrict unauthorized access to services exposing Rhai scripting interfaces. Finally, maintaining robust logging and monitoring can aid in early detection of exploitation attempts.
Description
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.