CVE-2026-40504
published critical CVSS 4.0 · 9.3Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| marcobambini | — | gravity0 to < 0.9.6 · 0 to < 18b9195598d9b944376754c6d1ad76e38a4adca1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| marcobambini | gravity | 0 to < 0.9.6 (affected · semver)0 to < 18b9195598d9b944376754c6d1ad76e38a4adca1 (affected · git)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-122 CWE-122 Heap-based Buffer Overflow
References
4- https://github.com/marcobambini/gravity/commit/18b9195598d9b944376754c6d1ad76e38a4adca1
- https://github.com/marcobambini/gravity/issues/437
- gravity 0.9.6 Release Notes https://github.com/marcobambini/gravity/releases/tag/0.9.6
- https://www.vulncheck.com/advisories/creolabs-gravity-heap-buffer-overflow-via-gravity-vm-exec
Provider assertions
2VulnCheck · cna
Creolabs Gravity < 0.9.6 Heap Buffer Overflow via gravity_vm_exec
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8e50aea37befc82ad798b7418af0bc8f6c02371bb991c03909ebf3916f52b421
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record