CVE-2023-39342
Dangerzone CLI does not sanitize ANSI escape characters
Mitigation
- Upgrade dangerzone to 0.4.2 or later.
Who should check
- Anyone running freedomofpress dangerzone < 0.4.2
Vulnerability facts
- Affected
- freedomofpress dangerzone < 0.4.2
- Fixed in
- freedomofpress dangerzone 0.4.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 3.6 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
- CWE
- CWE-150
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| freedomofpress dangerzone | < 0.4.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-39342. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-39342.md Affected: freedomofpress dangerzone < 0.4.2 Fixed in: freedomofpress dangerzone 0.4.2 Steps: 1. Search this machine and project for freedomofpress dangerzone: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-39342 being exploited?
There is no confirmed exploitation: CVE-2023-39342 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-39342?
Low: CVSS 3.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2023-39342?
freedomofpress dangerzone < 0.4.2.
Is there a fix for CVE-2023-39342?
Yes. Fixed in freedomofpress dangerzone 0.4.2. Upgrade dangerzone to 0.4.2 or later.
How do I check if I'm affected by CVE-2023-39342?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.