CVE-2021-31875

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.
References
Link Resource
https://github.com/418sec/mjs/pull/2 Patch Third Party Advisory
https://github.com/cesanta/mjs/releases/tag/1.26 Third Party Advisory
https://huntr.dev/bounties/1-other-mjs/ Exploit Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:cesanta:mongooseos_mjs:1.26:*:*:*:*:*:*:*

Information

Published : 2021-04-29 02:15

Updated : 2022-04-25 20:26


NVD link : CVE-2021-31875

Mitre link : CVE-2021-31875


JSON object : View

Products Affected

cesanta

  • mongooseos_mjs
CWE
CWE-787

Out-of-bounds Write

CWE-193

Off-by-one Error