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."

01 Mar 2023, 16:02

Type Values Removed Values Added
References (MISC) https://github.com/cesanta/mjs/releases/tag/1.26 - Third Party Advisory (MISC) https://github.com/cesanta/mjs/releases/tag/1.26 - Release Notes, Third Party Advisory

27 Dec 2022, 08:15

Type Values Removed Values Added
Summary 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. ** 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."

25 Apr 2022, 20:26

Type Values Removed Values Added
CWE CWE-193

10 May 2021, 19:02

Type Values Removed Values Added
CWE CWE-787
CVSS v2 : unknown
v3 : unknown
v2 : 7.5
v3 : 9.8
CPE cpe:2.3:a:cesanta:mongooseos_mjs:1.26:*:*:*:*:*:*:*
References (MISC) https://github.com/418sec/mjs/pull/2 - (MISC) https://github.com/418sec/mjs/pull/2 - Patch, Third Party Advisory
References (MISC) https://github.com/cesanta/mjs/releases/tag/1.26 - (MISC) https://github.com/cesanta/mjs/releases/tag/1.26 - Third Party Advisory
References (MISC) https://huntr.dev/bounties/1-other-mjs/ - (MISC) https://huntr.dev/bounties/1-other-mjs/ - Exploit, Third Party Advisory

29 Apr 2021, 02:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-04-29 02:15

Updated : 2024-04-11 01:11


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