CVE-2023-39342

Dangerzone CLI does not sanitize ANSI escape characters

LOW
3.6
CVSS Score
Published: August 8, 2023 at 05:31 PM UTC
Updated: June 17, 2026 at 06:12 AM UTC
2 products affected across 2 vendorsDangerzoneDangerzone

Using dangerzone by freedomofpress?

Get instant alerts when new vulnerabilities affect dangerzone - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW3.6
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.4.2
Affected range stops below 0.4.2, so it looks safe — our inference, not a vendor statement
v < 0.4.2
Affected range stops below 0.4.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

3.6LOWGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-150

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card