Home / CVE DB / CVE-2026-40504
Standard
Vulnerability Identifier

CVE-2026-40504

2026-04-16
Severity Assessment
9.8
CRITICAL
CVSS v3.x Score
Clinical Analysis (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.

Vector Sequencing

Attack Parameters

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Impact Consequences

Technical Impact

Unchanged
Scope
High
Confidentiality
High
Integrity
High
Availability
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Classification

CWE-CWE-122

Timeline

Time Line

PUBLICATION
16 Apr 2026
MODIFICATION
17 Apr 2026
Impact Statistics

Key Metrics

CVSS Score
9.8
CRITICAL
Remediation Protocol

Recommended Solution

No automatic solution found. Check vendor references.
Patch Library
No direct patch listed in database.
Recommended Actions for Administrators

Immediate Action Plan

1. Inventory

Identify all affected systems in your infrastructure.

2. Assessment

Assess exposure and criticality for your organization.

3. Mitigation

Apply patches or available workarounds.

4. Verification

Test and confirm effectiveness of applied measures.

⚠️ MAXIMUM PRIORITY - Immediate action required