CVE-2026-40504CWE-122

Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec

Critical · published April 16, 2026

CVSS v4.0
9.3
EPSS
1%
Percentile
58.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
9.3 · 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
EPSS
0.00879 · 58.7th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2026-04-16T01:10Z
EPSS history
Timeline
  • 16 APR 01:10Z
    Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec
    cvelistv5