CVE 9.3 CRITICAL

Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec_CVE-2026-40504

9.3 / 10
CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Description

Creolabs Gravity before 0.9.6 contains a heap buffer overflow vulnerability in the gravity_vm_exec function that allows attackers to write out-of-bounds memory by crafting scripts with many string literals at global scope. Attackers can exploit insufficient bounds checking in gravity_fiber_reassign() to corrupt heap metadata and achieve arbitrary code execution in applications that evaluate untrusted scripts.

AI Analysis

Heap buffer overflow in gravity_vm_exec function allows arbitrary code execution

Basic Information

ID CVE-2026-40504
Source VulnCheck
Published Apr 16, 2026 at 01:10

Affected Product

Vendor marcobambini
Product gravity
Affected Versions marcobambini gravity 0
marcobambini gravity 0

CWE Classification

AI Assessment

AI Score 9.3 / 10
AI Severity Critical
Vendor Creolabs
Product Gravity
Version < 0.9.6

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.