VYPR
Unrated severityNVD Advisory· Published May 21, 2024· Updated Feb 13, 2025

CVE-2024-35385

CVE-2024-35385

Description

An issue in Cesanta mjs 2.20.0 allows a remote attacker to cause a denial of service via the mjs_mk_ffi_sig function in the mjs.c file.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A segmentation fault in Cesanta mjs 2.20.0, triggered via crafted input in mjs_mk_ffi_sig, can lead to a denial of service.

Vulnerability

A segmentation fault vulnerability exists in Cesanta mjs version 2.20.0 (commit b1b6eac) within the mjs_mk_ffi_sig function in mjs.c [1]. The flaw is reachable when the engine parses a specially crafted JavaScript object literal containing malformed FFI type signatures, as demonstrated by the proof-of-concept (PoC) provided in the issue [1].

Exploitation

An attacker can exploit this vulnerability without authentication by crafting a JavaScript file that includes an object with a property value containing a malformed FFI definition (e.g., ffi-= 44.1111 and a final string with unprintable characters). Executing this script using the mjs interpreter (compiled with AddressSanitizer, but also reproducible without) triggers a segmentation fault in mjs_mk_ffi_sig due to an invalid memory read [1]. The PoC shows the crash occurs during the execution of mjs_exec_file [1].

Impact

Successful exploitation causes a segmentation fault, leading to a denial of service (DoS) condition by crashing the mjs interpreter. The crash is a read access violation, as confirmed by AddressSanitizer output (READ memory access) [1]. No further compromise beyond DoS is indicated in the available references.

Mitigation

As of the latest reference [1] (published 2024-05-21), no fix has been released by Cesanta for this vulnerability in mjs 2.20.0. Users should consider avoiding the use of untrusted JavaScript input with this version and monitor the project for a future patch.

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • Cesanta/mjsdescription
  • Cesanta/mjsllm-fuzzy
    Range: =2.20.0

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.