CVE-2021-31875 Details
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. 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."
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/418sec/mjs/pull/2 | CVE | PatchThird Party Advisory |
| https://github.com/cesanta/mjs/releases/tag/1.26 | CVE | Release NotesThird Party Advisory |
| https://huntr.dev/bounties/1-other-mjs/ | CVE | ExploitThird Party Advisory |
| https://github.com/418sec/mjs/pull/2 | [email protected] | PatchThird Party Advisory |
| https://github.com/cesanta/mjs/releases/tag/1.26 | [email protected] | Release NotesThird Party Advisory |
| https://huntr.dev/bounties/1-other-mjs/ | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-193 | Off-by-one Error | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cesanta mongooseos mjs | 1.26 |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 3, 2024 | CVE Modified | [email protected] |
| May 17, 2024 | CVE Modified | [email protected] |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 11, 2024 | CVE Modified | [email protected] |
| Mar 21, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Mar 1, 2023 | Modified Analysis | [email protected] |
| Dec 27, 2022 | CVE Modified | [email protected] |
| Apr 25, 2022 | Reanalysis | [email protected] |
| May 10, 2021 | Initial Analysis | [email protected] |