SecurityContext

CVE-2021-46525: Cesanta MJS - Use After Free

  • Cve: CVE-2021-46525
  • Name: Cesanta MJS - Use After Free
  • Description: Cesanta MJS v2.20.0 was discovered to contain a heap-use-after-free via mjs_apply at src/mjs_exec.c.
  • Impact: Attackers can cause crashes or execute arbitrary code, leading to potential system compromise or denial of service.
  • Remediation: Update to the latest version of Cesanta MJS that addresses this issue or apply available patches.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution, denial_of_service
  • 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.00802
  • Epss percentile: 0.57435
  • Assignee: [email protected]
  • Published at: 2022-01-27T21:15:10Z
  • Age in days: 1762
  • Modified at: 2026-06-17T04:15:01Z
  • 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-46525
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

Public exploits

UrlSourceAdded date
https://github.com/cesanta/mjs/issues/199nvd2022-01-27

References

UrlSourceTags
https://github.com/cesanta/mjs/issues/199nvdExploit, Issue Tracking, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
cesanta:mjs= 2.20.0nonvd/v1/products/cesanta/mjs

Projects

RepositoryLink kindsIndexedUrl
cesanta/mjsissuesyes/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