Read the docs
TI-2026-29254 Aliases CVE-2026-40504GHSA-3r49-76f3-pf2m

Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec

Priority HIGH 81CWE-122Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0064 50th percentileScored 2026-11-07
Fix Fixed gravity (marcobambini): 0.9.6

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

VendorProductAffected versionsFixed inStatusSource
marcobambinigravitybefore 0.9.60.9.6Patch availableCNA
  • 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

  1. 2026-10-02 Threatist record created from CVE-2026-40504
  2. 2026-10-03 Alias added: GHSA-3r49-76f3-pf2m

References

  • 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