CVE-2026-40504: CWE-122 Heap-based Buffer Overflow in marcobambini gravity
CVE-2026-40504 is a critical heap-based buffer overflow vulnerability in Creolabs Gravity before version 0. 9. 6. It occurs in the gravity_vm_exec function when processing scripts with many string literals at the global scope. The vulnerability arises from insufficient bounds checking in gravity_fiber_reassign(), allowing attackers to corrupt heap metadata. Successful exploitation can lead to arbitrary code execution in applications that evaluate untrusted scripts. No official patch or remediation guidance is currently available from the vendor. There are no known exploits in the wild at this time.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-40504) affects Creolabs Gravity versions prior to 0.9.6. It is a heap-based buffer overflow caused by improper bounds checking in the gravity_vm_exec and gravity_fiber_reassign functions. Attackers can craft malicious scripts containing numerous string literals at the global scope to trigger out-of-bounds writes, corrupt heap metadata, and potentially execute arbitrary code. The CVSS 4.0 score is 9.3, indicating critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. No patch or official remediation level has been published yet.
Potential Impact
If exploited, this vulnerability allows remote attackers to execute arbitrary code without authentication or user interaction by leveraging a heap buffer overflow in the script evaluation engine. This can compromise the confidentiality, integrity, and availability of affected systems running vulnerable versions of Creolabs Gravity. There are no reports of active exploitation in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid evaluating untrusted scripts with vulnerable versions of Creolabs Gravity. Monitor vendor channels for updates and apply patches promptly once available.
CVE-2026-40504: CWE-122 Heap-based Buffer Overflow in marcobambini gravity
Description
CVE-2026-40504 is a critical heap-based buffer overflow vulnerability in Creolabs Gravity before version 0. 9. 6. It occurs in the gravity_vm_exec function when processing scripts with many string literals at the global scope. The vulnerability arises from insufficient bounds checking in gravity_fiber_reassign(), allowing attackers to corrupt heap metadata. Successful exploitation can lead to arbitrary code execution in applications that evaluate untrusted scripts. No official patch or remediation guidance is currently available from the vendor. There are no known exploits in the wild at this time.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-40504) affects Creolabs Gravity versions prior to 0.9.6. It is a heap-based buffer overflow caused by improper bounds checking in the gravity_vm_exec and gravity_fiber_reassign functions. Attackers can craft malicious scripts containing numerous string literals at the global scope to trigger out-of-bounds writes, corrupt heap metadata, and potentially execute arbitrary code. The CVSS 4.0 score is 9.3, indicating critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. No patch or official remediation level has been published yet.
Potential Impact
If exploited, this vulnerability allows remote attackers to execute arbitrary code without authentication or user interaction by leveraging a heap buffer overflow in the script evaluation engine. This can compromise the confidentiality, integrity, and availability of affected systems running vulnerable versions of Creolabs Gravity. There are no reports of active exploitation in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid evaluating untrusted scripts with vulnerable versions of Creolabs Gravity. Monitor vendor channels for updates and apply patches promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-13T20:29:02.808Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e03f8c82d89c981fff3a61
Added to database: 4/16/2026, 1:46:52 AM
Last enriched: 4/16/2026, 2:01:49 AM
Last updated: 4/16/2026, 3:54:12 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.