CVE-2021-31875 Information

Description

In mjs_json.c in Cesanta MongooseOS mJS 1.26 a maliciously formed JSON string can trigger an off-by-one heap-based buffer overflow in mjs_json_parse which can potentially lead to redirection of control flow.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Reference

https://github.com/418sec/mjs/pull/2 https://github.com/cesanta/mjs/releases/tag/1.26 https://huntr.dev/bounties/1-other-mjs/

Attack Complexity

LOW

Privileges Required

NONE

User Interaction Required

NONE

Scope

NONE

Confidentiality Impact

UNCHANGED

Integrity Impact

HIGH

Availability Impact

HIGH

Base Score

HIGH

Base Severity

9.8

Share on: