Critical Heap Overflow in Creolabs Gravity Exposes Arbitrary Code Execution

Critical Heap Overflow in Creolabs Gravity Exposes Arbitrary Code Execution

The National Vulnerability Database (NVD) recently published details on CVE-2026-40504, a critical heap buffer overflow vulnerability in Creolabs Gravity, specifically affecting versions prior to 0.9.6. This isn’t just a run-of-the-mill bug; we’re talking about a CVSS score of 9.8, which puts it squarely in the ‘drop everything and fix’ category.

According to the NVD, the flaw resides within the gravity_vm_exec function. Attackers can craft malicious scripts containing an excessive number of string literals at the global scope. The real kicker here is the insufficient bounds checking in gravity_fiber_reassign(), which can be leveraged to corrupt heap metadata. The end result? Arbitrary code execution in applications that evaluate untrusted scripts. This is the kind of vulnerability that keeps security pros up at night, as it offers a direct path to system compromise if exploited in the wild.

Related ATT&CK Techniques

🛡️ Detection Rules

8 rules · 6 SIEM formats

8 auto-generated detection rules for this incident, mapped to MITRE ATT&CK. Available in Sigma, Splunk SPL, Sentinel KQL, Elastic Lucene, QRadar AQL, and Wazuh.

high T1190 Initial Access

Web Application Exploitation Attempt — CVE-2026-40504

✓ Sigma 🔒 Splunk SPL 🔒 Sentinel KQL 🔒 Elastic 🔒 QRadar AQL 🔒 Wazuh

Want this in your SIEM's native format? Get Splunk SPL, Sentinel KQL, Elastic, QRadar AQL, or Wazuh — ready to paste.

8 Sigma rules mapped to the ATT&CK techniques from this breach — pick your SIEM and get a ready-to-paste query.

Get All SIEM Formats →

Indicators of Compromise

IDTypeIndicator
CVE-2026-40504 Buffer Overflow Creolabs Gravity before 0.9.6
CVE-2026-40504 RCE gravity_vm_exec function
CVE-2026-40504 Memory Corruption gravity_fiber_reassign() function

Related Posts

MailGates/MailAudit CRLF Injection Exposes System Files

CVE-2026-6351 — MailGates/MailAudit developed by Openfind has a CRLF Injection vulnerability, allowing unauthenticated remote attackers to exploit this vulnerability to read system files.

vulnerabilityCVEhigh-severitycwe-93
/HIGH /⚑ 3 IOCs

Critical MailGates Flaw Lets Attackers Run Wild

CVE-2026-6350 — MailGates/MailAudit developed by Openfind has a Stack-based Buffer Overflow vulnerability, allowing unauthenticated remote attackers to control the program's execution flow and execute arbitrary...

vulnerabilityCVEcriticalhigh-severitybuffer-overflowcwe-121
/CRITICAL /⚑ 3 IOCs

WinMatrix Agent: Local Auth Bypass to SYSTEM Privileges

CVE-2026-6348 — WinMatrix agent developed by Simopro Technology has a Missing Authentication vulnerability, allowing authenticated local attackers to execute arbitrary code with SYSTEM privileges on...

vulnerabilityCVEhigh-severitycwe-306
/HIGH /⚑ 3 IOCs