| शीर्षक | marcobambini gravity v0.9.7 Heap-based Buffer Overflow |
|---|
| विवरण | The vendored udp/json-parser decodes integer tokens digit-by-digit with the accumulator top->u.integer = (top->u.integer * 10) + (b - '0') (src/utils/gravity_json.c:1126). Any JSON input containing an integer literal with more than 19 significant decimal digits (e.g. twenty 2s or twenty 9s) makes this signed 64-bit multiplication overflow, which is undefined behavior. In a build with -fsanitize=undefined -fno-sanitize-recover=all, UBSan detects integer multiplication overflowed and traps with SIGILL.
Affected versions: Gravity v0.9.7 / HEAD 17a280b83c10424597bf4d130d208b72de731c2a
Severity: Medium (wrong value / data corruption; SIGILL DoS in UBSan builds)
CWE: CWE-190 (Integer Overflow) |
|---|
| स्रोत | ⚠️ https://github.com/marcobambini/gravity/issues/447 |
|---|
| उपयोगकर्ता | lrrh (UID 100159) |
|---|
| सबमिशन | 08/08/2026 10:00 AM (1 महीना पहले) |
|---|
| संयम | 13/09/2026 11:53 AM (1 month later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 403269 [marcobambini Gravity तक 0.9.7 udp json-parser src/utils/gravity_json.c बफ़र ओवरफ़्लो] |
|---|
| अंक | 20 |
|---|