# CVE-2024-36760: Rhai stack overflow vulenrability

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2024-06-13T00:00:00.000Z
- Modified: 2026-06-17T07:37:09.987Z
- Also known as: GHSA-67fv-9r7g-432h
- Weaknesses: CWE-120, CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rhai rhai: 1.18.0
- rhai (crates.io): up to 1.18.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/MageWeiG/VulnerabilityCollection/blob/main/CVE-2024-36760/info.md> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-36760> (advisory)
- <https://github.com/rhaiscript/rhai/commit/308d07a11d3bff0d230f685a6320292181e5a445> (web)
- <https://github.com/rhaiscript/rhai> (package)

## Sources

- CVE List: [CVE-2024-36760](https://www.cve.org/CVERecord?id=CVE-2024-36760), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-67fv-9r7g-432h](https://github.com/advisories/GHSA-67fv-9r7g-432h), CC-BY-4.0, modified 2024-07-05
- NVD: [CVE-2024-36760](https://nvd.nist.gov/vuln/detail/CVE-2024-36760), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36760 · Whole record: https://cve.day/CVE-2024-36760.json · Rebuilt by cve.day 2026-11-25T22:58:41.837Z
