CVE-2026-40504 json
Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec
published 2026-04-16 6 mo ago modified 2026-11-08 19 h ago also EUVD-2026-23145
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- marcobambini gravity 0.9.6
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | 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 |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 9.3 | 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 |
Affected products
- marcobambini gravity
Classification
- Weakness
-
- CWE-122 Heap-based Buffer Overflow
References
-
github.com
/marcobambini/gravity/commit/18b9195598d9b944376754c6d1ad76e38a4adca1
patch
-
github.com
/marcobambini/gravity/releases/tag/0.9.6
release-notes
-
github.com
/marcobambini/gravity/issues/437
issue-tracking
-
vulncheck.com
/advisories/creolabs-gravity-heap-buffer-overflow-via-gravity-vm-exec
third-party-advisory
Sources
- CVE List CVE-2026-40504
- NVD CVE-2026-40504
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.