CVE-2021-46509: Cesanta MJS - Buffer Overflow
- Cve: CVE-2021-46509
- Name: Cesanta MJS - Buffer Overflow
- Description: Cesanta MJS v2.20.0 was discovered to contain a stack overflow via snquote at mjs/src/mjs_json.c.
- Impact: Attackers can cause denial of service or execute arbitrary code through stack overflow exploitation.
- Remediation: Update to the latest version of Cesanta MJS to fix the vulnerability.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00763
- Epss percentile: 0.56314
- Assignee: [email protected]
- Published at: 2022-01-27T21:15:09Z
- Age in days: 1762
- Modified at: 2026-06-17T04:14:59Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-46509
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-674 | Uncontrolled Recursion |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/cesanta/mjs/issues/200 | nvd | 2022-01-27 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/cesanta/mjs/issues/200 | nvd | Exploit, Issue Tracking, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cesanta:mjs | = 2.20.0 | no | nvd | /v1/products/cesanta/mjs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cesanta/mjs | issues | yes | /v1/repositories/cesanta/mjs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-01-27
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts