CVE-2022-40276 Path traversal in Zettlr

Medium 5.5 Published Updated

An attacker can read arbitrary local files by tricking a user into opening a malicious markdown file in Zettlr.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-40276?

CVE-2022-40276 is a medium-severity path traversal vulnerability in Zettlr, published on 3 Nov 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Zettlr version 2.3.0 allows an external attacker to remotely obtain arbitrary local files on any client that attempts to view a malicious markdown file through Zettlr. This is possible because the application does not have a CSP policy (or at least not strict enough) and/or does not properly validate the contents of markdown files before rendering them.

Weakness: CWE-20

Which versions are affected by CVE-2022-40276?

It affects 1 product.

Products include Zettlr Zettlr.

How do I fix CVE-2022-40276?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-40276 being exploited?

There is no known exploitation of CVE-2022-40276 in the wild and no public exploit code.

Sources

Also known as GHSA-gq8w-3h98-m48x.

Is CVE-2022-40276 in your software?

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

Check your SBOMs for free