7.8
CWE
120 119
Advisory Published
Updated

CVE-2021-46521: Buffer Overflow

First published: Thu Jan 27 2022(Updated: )

Cesanta MJS v2.20.0 was discovered to contain a global buffer overflow via c_vsnprintf at mjs/src/common/str_util.c.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
MJS=2.20.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-46521?

    CVE-2021-46521 has a medium severity rating due to the risk of a buffer overflow that could lead to system crashes or execution of arbitrary code.

  • How do I fix CVE-2021-46521?

    To fix CVE-2021-46521, you should upgrade to a version of Cesanta MJS that is later than v2.20.0.

  • What type of vulnerability is CVE-2021-46521?

    CVE-2021-46521 is classified as a global buffer overflow vulnerability.

  • In which component of Cesanta MJS is CVE-2021-46521 found?

    CVE-2021-46521 is found in the str_util.c file within the common directory of the MJS source code.

  • Can CVE-2021-46521 affect other versions of the software?

    CVE-2021-46521 specifically affects Cesanta MJS version 2.20.0, and other versions should be evaluated for similar vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203