{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40504","published":"2026-04-16T02:16:11.693000Z","last_modified":"2026-10-26T21:10:00.170000Z","status":"Deferred","cvss":{"version":"4.0","score":9.3,"severity":"CRITICAL","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"disclosure@vulncheck.com","primary":false},"auth":false,"cwes":["CWE-122"],"cpes":[],"cpes_truncated":false,"vendors":["marcobambini"],"products":["marcobambini/gravity"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":71,"links":{"html_es":"/es/cve/CVE-2026-40504/","html_en":"/en/cve/CVE-2026-40504/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40504","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40504"},"untrusted":{"vendor_name":"marcobambini","product_name":"gravity","desc_en":"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.","affected":[{"untrusted_vendor":"marcobambini","untrusted_product":"gravity","versions":[]}],"references":[{"url":"https://github.com/marcobambini/gravity/commit/18b9195598d9b944376754c6d1ad76e38a4adca1","tags":[]},{"url":"https://github.com/marcobambini/gravity/issues/437","tags":[]},{"url":"https://github.com/marcobambini/gravity/releases/tag/0.9.6","tags":[]},{"url":"https://www.vulncheck.com/advisories/creolabs-gravity-heap-buffer-overflow-via-gravity-vm-exec","tags":[]}]}}