CVE-2026-40504 Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec
CriticalCVSS 9.3
EPSS 0.66%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| marcobambini/gravity | < 0.9.6; < 18b9195598d9b944376754c6d1ad76e38a4adca1 | 0.9.6, 18b9195598d9b944376754c6d1ad76e38a4adca1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| marcobambini/gravity | < 0.9.6 | 0.9.6 |
| marcobambini/gravity | < 18b9195598d9b944376754c6d1ad76e38a4adca1 | 18b9195598d9b944376754c6d1ad76e38a4adca1 |
References
- gravity 0.9.6 Release Notes release-notes
- github.com issue-tracking
- github.com patch
- www.vulncheck.com third-party-advisory