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. NOTE: the original reporter disputes the significance of this finding because "there isn’t very much of an opportunity to exploit this reliably for an information leak, so there isn’t any real security impact."
References
Link Resource
https://github.com/418sec/mjs/pull/2 Patch Third Party Advisory
https://github.com/cesanta/mjs/releases/tag/1.26 Release Notes 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:*:*:*:*:*:*:*

History

07 Nov 2023, 03:35

Type Values Removed Values Added
Summary ** DISPUTED ** 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. NOTE: the original reporter disputes the significance of this finding because "there isn’t very much of an opportunity to exploit this reliably for an information leak, so there isn’t any real security impact." 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. NOTE: the original reporter disputes the significance of this finding because "there isn’t very much of an opportunity to exploit this reliably for an information leak, so there isn’t any real security impact."

Information

Published : 2021-04-29 02:15

Updated : 2024-08-03 23:15


NVD link : CVE-2021-31875

Mitre link : CVE-2021-31875

CVE.ORG link : CVE-2021-31875


JSON object : View

Products Affected

cesanta

  • mongooseos_mjs
CWE
CWE-193

Off-by-one Error

CWE-787

Out-of-bounds Write