Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| marcobambini | gravity | before 0.9.6 | 0.9.6 | Patch available | CNA |
- gravity Vendormarcobambini Affected before 0.9.6 Fixed in 0.9.6 Patch available CNA
Remediation
- Fix · CNA gravity (marcobambini) Fixed in 0.9.6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40504
- 2026-10-03 Alias added: GHSA-3r49-76f3-pf2m
References
More marcobambini vulnerabilities
- TI-2026-61672 marcobambini Gravity udp json-parser gravity_json.c integer overflow CVSS 4.0MEDIUM 6.9
- TI-2026-61671 marcobambini Gravity JSON parser gravity_json.c memory corruption CVSS 4.0MEDIUM 5.3
- TI-2026-61673 marcobambini Gravity Number gravity_parser.c parse_number_expression out-of-bounds CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-40504 · CVE Program
- CVE-2026-40504 · NVD
- FIRST EPSS
- GHSA-3r49-76f3-pf2m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences