Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-36760: n/a

0
High
VulnerabilityCVE-2024-36760cvecve-2024-36760
Published: Thu Jun 13 2024 (06/13/2024, 00:00:00 UTC)
Source: CVE Database V5

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 03:35:00 UTC

Technical Analysis

CVE-2024-36760 is a stack overflow vulnerability identified in version 1.18.0 of the Rhai scripting engine, specifically within the eval_stmt_block function of the eval_stmt module. Rhai is a lightweight embedded scripting language commonly used to add scripting capabilities to applications. The vulnerability arises from uncontrolled recursive calls in the eval_stmt_block function, which leads to a stack overflow condition. This flaw is categorized under CWE-120 (Classic Buffer Overflow) and can be triggered remotely without requiring any authentication or user interaction, as indicated by the CVSS vector (AV:N/AC:L/PR:N/UI:N). The impact is primarily on availability, as exploitation causes the application or service embedding Rhai to crash, resulting in denial of service. The CVSS score of 7.5 reflects the high severity due to ease of exploitation and potential disruption. No patches or exploits are currently publicly available, but the vulnerability is published and recognized by MITRE. The flaw affects any application using Rhai 1.18.0 that evaluates scripts using the vulnerable function, potentially impacting a wide range of software products that embed Rhai for scripting purposes.

Potential Impact

The primary impact of CVE-2024-36760 is denial of service caused by application crashes due to stack overflow. Organizations embedding Rhai 1.18.0 in their software may experience service interruptions, leading to operational downtime and potential loss of availability for critical systems. While the vulnerability does not compromise confidentiality or integrity, the disruption of services can affect business continuity, especially in environments relying on automated scripting for workflows or embedded control systems. The ease of remote exploitation without authentication increases the risk of widespread attacks, particularly in exposed network environments. Industries such as software development, IoT device manufacturers, and any sector embedding Rhai for scripting could face significant operational challenges if exploited.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-05-30T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6c66b7ef31ef0b5639e2

Added to database: 2/25/2026, 9:40:54 PM

Last enriched: 2/28/2026, 3:35:00 AM

Last updated: 4/11/2026, 8:46:22 PM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses