CVE-2023-53940
7.8Alfonzm · Codigo Markdown Editor
Codigo Markdown Editor 1.0.1 allows remote code execution via a malicious markdown file containing a video source tag with an onerror event that triggers system commands through Node.js.
Executive summary
A critical remote code execution vulnerability in Codigo Markdown Editor 1.0.1 allows attackers to execute arbitrary system commands when a specially crafted markdown file is opened.
Vulnerability
The application is susceptible to improper control of code generation (CWE-94), where it fails to sanitize markdown input. An unauthenticated attacker can embed a video element with an onerror event that leverages the Electron framework and Node.js child_process module to execute arbitrary commands on the host system.
Business impact
Successful exploitation of this vulnerability grants an attacker the ability to execute arbitrary code on the victim's machine with the same privileges as the user running the application. This could lead to full system compromise, data theft, or the installation of persistent malicious software. Given the CVSS score of 7.8, this represents a high risk to organizational security, particularly for users who frequently handle untrusted markdown files.
Remediation
Immediate Action: There is no official patch available for this vulnerability at this time. Users are strongly advised to cease using Codigo Markdown Editor 1.0.1 until a secure version is released by the vendor.
Proactive Monitoring: Security teams should monitor endpoint logs for suspicious child processes spawned by the Codigo application, such as shell interpreters or unexpected system utilities.
Compensating Controls: Implement strict application control policies to restrict the execution of unauthorized binaries and ensure that users do not open markdown files from untrusted or unknown sources.
Exploitation status
Public Exploit Available: Yes, a public proof-of-concept exists as documented in the Exploit-DB entry 51432.
Analyst recommendation
Due to the severity of the remote code execution flaw and the availability of a public proof-of-concept, users must treat this software as inherently insecure in its current state. Immediate removal or restriction of the application is necessary to prevent potential system compromise until the vendor provides a verified security update.
Sources
Originally found and disclosed by 8bitsec, per the CVE Program record.
- ExploitDB-51432 Exploit / PoC
- Product GitHub Repository
- VulnCheck Advisory: Codigo Markdown Editor 1.0.1 Electron Arbitrary Code Execution via Markdown File Third-party advisory