Skip to main content

Gravity CVE-2026-90715

| EUVDEUVD-2026-77440 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-09-14 VulDB GHSA-vpgh-jr2c-rxqw
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach application embedding Gravity ≤ 0.9.7
  2. Delivery
    Deliver crafted JSON with oversized cumulative key-string bytes
  3. Exploit
    Trigger unsigned long truncation in json_alloc() size calculation
  4. Execution
    Allocate undersized heap buffer
  5. Persist
    Write past buffer boundary
  6. Impact
    Heap memory corruption or crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target process embeds the Gravity runtime at version ≤ 0.9.7 and exposes attacker-controlled data to the Gravity JSON parser (gravity_json_parse() in gravity_json.c). The integer truncation overflow that causes the undersized allocation is platform-gated: it fires only on 64-bit Windows builds where unsigned long is 32 bits (LLP64 model); on Linux/macOS 64-bit builds unsigned long is 64 bits and the truncation does not occur, though the exponent accumulator overflow remains. No authentication is required at the parser level - whether a credential barrier exists depends entirely on the embedding application's own access controls. The attack is automatable (SSVC) because no user interaction is required once the input channel is reachable.

Impact

The CVSS 4.0 score of 5.5 (E:P) and SSVC classification of Automatable:yes / Technical Impact:partial represent a moderate but contextually bounded risk. The network attack vector (AV:N) assumes Gravity is embedded in a network-facing application processing untrusted JSON, which is not a universal deployment scenario - Gravity is frequently used as an embedded scripting language in games or tooling rather than exposed directly to the internet. The most severe exploitation path (integer truncation to a 32-bit unsigned long) is platform-specific: it fires reliably only on 64-bit Windows builds where unsigned long is 32 bits; Linux and macOS 64-bit builds are unaffected by the truncation path, though the exponent overflow path remains. No KEV listing exists, and EPSS data is not provided in the input, consistent with a niche-product, PoC-only risk signal. The 'Information Disclosure' tag in the input partially mischaracterizes the primary impact, which is heap memory corruption (OOB write from undersized allocation). Real-world code execution exploitability is unconfirmed - crash/DoS is the most likely outcome.

Exploit ScenarioDerived

An attacker sends a crafted JSON document containing a single object with a large number of keys whose cumulative name-string lengths sum past 2^32 bytes to a network application embedding Gravity ≤ 0.9.7 on 64-bit Windows. The truncated allocation size causes json_alloc() to allocate a buffer far smaller than required, and subsequent key-string writes from the second parse pass overflow the heap buffer. A public PoC demonstrating the crash is available at https://github.com/marcobambini/gravity/issues/447.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 15, 2026

Integer overflow in the Gravity scripting language's embedded JSON parser (gravity_json.c ≤ 0.9.7) allows remote attackers to cause heap allocation size miscalculation via crafted JSON input, resulting in an undersized buffer allocation and subsequent heap memory corruption or crash. The root flaw is a unsigned long truncation to 32 bits on LLP64 targets (64-bit Windows) when accumulating object key-string byte counts across a two-pass JSON parse, meaning any application embedding Gravity and feeding it attacker-controlled JSON is at risk on affected platforms. A public proof-of-concept exists at GitHub issue #447 and version 0.9.8 resolves all identified paths; no active exploitation (CISA KEV) has been recorded.

RemediationAI

Upgrade to Gravity 0.9.8 (https://github.com/marcobambini/gravity/releases/tag/0.9.8), which contains the complete fix via commit 9b337c3eae5833c3956bed1fc01c21c14fd443f2 and PR #451 (https://github.com/marcobambini/gravity/pull/451). If immediate upgrade is not feasible, restrict untrusted JSON input size and object key count at the application boundary before passing data to the Gravity parser - enforcing a maximum total key-string byte budget below 2^32 bytes eliminates the truncation path. On Linux/macOS 64-bit builds, the critical LLP64 truncation does not occur (unsigned long is 64 bits), but the exponent overflow path is still present; the upgrade remains recommended. There are no known workarounds that fully address all identified paths without patching.

Affected VersionsENISA

gravity 0.9.7
gravity 0.9.1
gravity 0.9.2
gravity 0.9.3
gravity 0.9.4
gravity 0.9.6
gravity 0.9.0
gravity 0.9.5

Affected Packages

euvd gravity no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gravity (cpe:2.3:a:marcobambini:gravity) is a dynamically-typed, C-implemented scripting language by marcobambini. Its JSON parser in src/utils/gravity_json.c performs a two-pass object parse: the first pass accumulates total key-string byte counts into the u.object.values union field (reused as a temporary counter rather than a pointer). The pre-patch code cast this field to unsigned long when computing the final json_alloc() size. On LLP64 platforms (64-bit Windows), unsigned long is 32 bits while uintptr_t and pointer width are 64 bits - this is a textbook CWE-190 integer truncation overflow that causes json_alloc() to receive a wrapped, undersized size argument, allocating a too-small heap buffer. A second integer overflow path existed in the numeric exponent accumulator, which lacked an upper bound and could overflow to inf/0. The fix in commit 9b337c3 introduces uintptr_t-typed object_name_bytes_get()/object_name_bytes_add() helpers using memcpy to avoid aliasing violations, and adds #define json_num_e_max 1000000 to clamp the exponent accumulator. Additional fixes in the same PR address null-pointer arithmetic UB and a murmur3 misaligned-load UB in gravity_hash.c.

Know when Gravity gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 7.3 HIGH

Network vector reflects embedding in network apps; PR:N since the JSON parser itself imposes no credential check; C/I/A all Low reflecting partial heap corruption impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Sep 14, 2026 - 13:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Sep 14, 2026 - 12:30 cve.org
MEDIUM 5.5

DescriptionCVE.org

A security vulnerability has been detected in marcobambini Gravity up to 0.9.7. This affects an unknown function of the file src/utils/gravity_json.c of the component udp json-parser. Such manipulation leads to integer overflow. The attack may be performed from remote. The exploit has been disclosed publicly and may be used. Upgrading to version 0.9.8 mitigates this issue. The name of the patch is 9b337c3eae5833c3956bed1fc01c21c14fd443f2. Upgrading the affected component is recommended.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche open-source scripting language, limited production deployment
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

CVE-2017-1000073 CRITICAL POC
9.8 Jul 17

Creolabs Gravity version 1.0 is vulnerable to a heap overflow in an undisclosed component that can result in arbitrary c

CVE-2017-1000172 CRITICAL POC
9.8 Nov 17

Creolabs Gravity Version: 1.0 Use-After-Free Possible code execution. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2017-1000173 CRITICAL POC
9.8 Nov 17

Creolabs Gravity Version: 1.0 Heap Overflow Potential Code Execution. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2017-1000075 CRITICAL POC
9.8 Jul 17

Creolabs Gravity version 1.0 is vulnerable to a stack overflow in the memcmp function. Rated critical severity (CVSS 9.8

CVE-2017-1000074 CRITICAL POC
9.8 Jul 17

Creolabs Gravity version 1.0 is vulnerable to a stack overflow in the string_repeat() function. Rated critical severity

CVE-2017-1000072 CRITICAL POC
9.8 Jul 17

Creolabs Gravity version 1.0 is vulnerable to a Double Free in gravity_value resulting potentially leading to modificati

CVE-2021-32284 HIGH POC
7.8 Sep 20

An issue was discovered in gravity through 0.8.1. Rated high severity (CVSS 7.8), this vulnerability is no authenticatio

CVE-2021-32281 HIGH POC
7.8 Sep 20

An issue was discovered in gravity through 0.8.1. Rated high severity (CVSS 7.8), this vulnerability is no authenticatio

CVE-2018-13795 HIGH POC
7.5 Jul 09

Gravity before 0.5.1 does not support a maximum recursion depth. Rated high severity (CVSS 7.5), this vulnerability is r

CVE-2021-32285 MEDIUM POC
5.5 Sep 20

An issue was discovered in gravity through 0.8.1. Rated medium severity (CVSS 5.5), this vulnerability is no authenticat

CVE-2021-32283 MEDIUM POC
5.5 Sep 20

An issue was discovered in gravity through 0.8.1. Rated medium severity (CVSS 5.5), this vulnerability is no authenticat

CVE-2021-32282 MEDIUM POC
5.5 Sep 20

An issue was discovered in gravity through 0.8.1. Rated medium severity (CVSS 5.5), this vulnerability is no authenticat

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy