CVE-2024-36760 Rhai stack overflow vulenrability

High 7.5 Published Updated

A stack overflow in the Rhai scripting library allows attackers to cause a denial of service via recursive statement evaluation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-36760?

CVE-2024-36760 is a high-severity denial of service vulnerability in n/a, published on 13 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-120

Which versions are affected by CVE-2024-36760?

2 open source packages ship an affected version, including rhai.

PackageAffectedFixed in
rhai crates.ioAll versions to 1.18.0None
rhai crates.ioAll versions to 1.18.0None

How do I fix CVE-2024-36760?

No fix has been published for CVE-2024-36760 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-36760 being exploited?

There is no known exploitation of CVE-2024-36760 in the wild and no public exploit code.

Sources

Also known as GHSA-67fv-9r7g-432h.

Is CVE-2024-36760 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free