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

- Severity: Low 3.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2023-08-08T17:31:10.609Z
- Modified: 2026-06-17T06:12:05.997Z
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- freedomofpress dangerzone: < 0.4.2
- freedom dangerzone: before 0.4.2

## Every score

- GitHub_M: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`

## References

- <https://github.com/freedomofpress/dangerzone/security/advisories/GHSA-pvwq-6vpp-2632> (vendor-advisory)
- <https://github.com/freedomofpress/dangerzone/pull/491> (patch, vendor-advisory)
- <https://github.com/freedomofpress/dangerzone/releases/tag/v0.4.2> (release-notes)

## Sources

- CVE List: [CVE-2023-39342](https://www.cve.org/CVERecord?id=CVE-2023-39342), CVE Terms of Use, modified 2024-10-04
- NVD: [CVE-2023-39342](https://nvd.nist.gov/vuln/detail/CVE-2023-39342), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-39342 · Whole record: https://cve.day/CVE-2023-39342.json · Rebuilt by cve.day 2026-11-25T22:58:26.957Z
