Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40504: CWE-122 Heap-based Buffer Overflow in marcobambini gravity

0
Critical
VulnerabilityCVE-2026-40504cvecve-2026-40504cwe-122
Published: Thu Apr 16 2026 (04/16/2026, 01:10:27 UTC)
Source: CVE Database V5
Vendor/Project: marcobambini
Product: 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

AILast updated: 04/16/2026, 02:01:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses