CVE-2023-1004 MarkText WSH JScript code injection

Medium 5.3 Published Updated

A local attacker can execute arbitrary code via WSH JScript injection in MarkText on Windows.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-1004?

CVE-2023-1004 is a medium-severity code injection vulnerability in MarkText, published on 24 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability has been found in MarkText up to 0.17.1 on Windows and classified as critical. Affected by this vulnerability is an unknown functionality of the component WSH JScript Handler. The manipulation leads to code injection. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used. The identifier VDB-221737 was assigned to this vulnerability.

Weakness: CWE-94

Which versions are affected by CVE-2023-1004?

It affects 1 product.

Products include Marktext Marktext.

How do I fix CVE-2023-1004?

No fix has been published for CVE-2023-1004 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-1004 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-1004 exists.

Sources

Also known as GHSA-7p66-mwq8-x35w.

Is CVE-2023-1004 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free