CVE-2023-39342 Dangerzone CLI does not sanitize ANSI escape characters

Low 3.6 Published Updated

Attackers can spoof terminal messages or change window titles via unsanitized ANSI escape sequences in Dangerzone CLI output.

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-2023-39342?

CVE-2023-39342 is a low-severity vulnerability in freedomofpress dangerzone, published on 8 Aug 2023. 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

Dangerzone is software for converting potentially dangerous PDFs, office documents, or images to safe PDFs. The Dangerzone CLI (`dangerzone-cli` command) logs output from the container where the file sanitization takes place, to the user's terminal. Prior to version 0.4.2, if the container is compromised and can return attacker-controlled strings, then the attacker may be able to spoof messages in the user's terminal or change the window title. Besides logging output from containers, it also logs the names of the files it sanitizes. If these files contain ANSI escape sequences, then the same issue applies. Dangerzone is predominantly a GUI application, so this issue should leave most of our users unaffected. Nevertheless, we always suggest updating to the newest version. This issue is fixed in Dangerzone 0.4.2.

Weakness: CWE-150

Which versions are affected by CVE-2023-39342?

It affects 1 product.

Products include Freedom Dangerzone.

How do I fix CVE-2023-39342?

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

Is CVE-2023-39342 being exploited?

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

Sources

Also known as GHSA-pvwq-6vpp-2632.

Is CVE-2023-39342 in your software?

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

Check your SBOMs for free