| शीर्षक | cesanta mJS v1.26 Heap-based Buffer Overflow |
|---|
| विवरण | A heap buffer overflow vulnerability exists in the lexical parsing module of the mjs JavaScript engine.
The vulnerability is located in the `skip_spaces_and_comments()` function in `src/mjs_tok.c`. When parsing specially crafted input, the function fails to properly validate buffer boundaries, allowing it to read data beyond the allocated heap buffer, resulting in a program crash.
This issue was discovered using libFuzzer with AddressSanitizer. The vulnerability can be reliably triggered with an input containing `0x0A` (single newline character).
Affected versions:
- mJS v1.26
- Commit: cf375c4
Vulnerability Type:
Heap-based Buffer Overflow (CWE-122) |
|---|
| स्रोत | ⚠️ https://github.com/cesanta/mjs/issues/324 |
|---|
| उपयोगकर्ता | lrrh (UID 100159) |
|---|
| सबमिशन | 30/07/2026 01:14 PM (1 महीना पहले) |
|---|
| संयम | 08/09/2026 01:09 PM (1 month later) |
|---|
| स्थिति | प्रतिलिपि |
|---|
| VulDB प्रविष्टि | 399773 [Cesanta mJS तक 1.26 src/mjs_tok.c skip_spaces_and_comments बफ़र ओवरफ़्लो] |
|---|
| अंक | 0 |
|---|