| 제목 | 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) |
|---|
| 제출 | 2026. 07. 30. PM 01:14 (1 월 ago) |
|---|
| 모더레이션 | 2026. 09. 08. PM 01:09 (1 month later) |
|---|
| 상태 | 중복 |
|---|
| VulDB 항목 | 399773 [Cesanta mJS 까지 1.26 src/mjs_tok.c skip_spaces_and_comments 메모리 손상] |
|---|
| 포인트들 | 0 |
|---|