The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-70342

CVE-2025-70342: erase-install Credential Disclosure Flaw

CVE-2025-70342 is an information disclosure vulnerability in erase-install that exposes admin credentials through a hardcoded file path. This article covers the technical details, affected versions, and mitigation steps.

Published: March 6, 2026

CVE-2025-70342 Overview

CVE-2025-70342 is a credential interception vulnerability in erase-install, a popular macOS utility used for system reinstallation and erasure operations. The vulnerability exists in versions prior to v40.4 (commit 2c31239) where the application writes swiftDialog credential output to a hardcoded path /var/tmp/dialog.json. This insecure file handling allows an unauthenticated local attacker to intercept administrator credentials entered during reinstall or erase operations by creating a named pipe at the expected file location.

Critical Impact

Local attackers can intercept administrator credentials during macOS reinstall/erase operations, potentially gaining full administrative access to enterprise systems.

Affected Products

  • erase-install versions prior to v40.4
  • erase-install builds before commit 2c31239fb8519d87577514b3db9ddb0771232a21
  • macOS systems using vulnerable erase-install deployments

Discovery Timeline

  • 2026-03-04 - CVE-2025-70342 published to NVD
  • 2026-03-04 - Last updated in NVD database

Technical Details for CVE-2025-70342

Vulnerability Analysis

This vulnerability stems from improper permission assignment for critical resources (CWE-732). The erase-install utility writes sensitive credential data to a predictable, world-readable location in the /var/tmp/ directory. When an administrator initiates a reinstall or erase operation and enters their credentials via the swiftDialog interface, these credentials are temporarily stored in /var/tmp/dialog.json.

The fundamental issue is the use of a hardcoded, predictable file path for sensitive credential storage combined with insufficient access controls on this file. Since /var/tmp/ is a shared temporary directory accessible by all users on the system, any local user can monitor or manipulate files created in this location.

Root Cause

The root cause is the hardcoded file path /var/tmp/dialog.json used for storing swiftDialog credential output without proper file permission restrictions. This design flaw allows any local user to predict where credentials will be written and preemptively create a named pipe (FIFO) at that location to intercept the data stream.

Attack Vector

The attack leverages the predictable nature of the credential storage path. An attacker with local access to the system can create a named pipe at /var/tmp/dialog.json before the legitimate erase-install process runs. When an administrator subsequently executes erase-install and enters their credentials, the swiftDialog output is redirected through the attacker's named pipe, allowing real-time credential interception.

The attack requires local access and depends on user interaction (an administrator must initiate the erase-install process and enter credentials), but requires no special privileges to execute. The impact includes potential exposure of administrator credentials, which could lead to complete system compromise.

Detection Methods for CVE-2025-70342

Indicators of Compromise

  • Presence of named pipes or symbolic links at /var/tmp/dialog.json
  • Unexpected processes monitoring or reading from /var/tmp/dialog.json
  • File type anomalies in /var/tmp/ showing FIFO special files where regular files are expected
  • Unauthorized user processes with file handles open to the erase-install credential path

Detection Strategies

  • Monitor for mkfifo or equivalent system calls creating files in /var/tmp/ matching the pattern dialog.json
  • Implement file integrity monitoring on /var/tmp/ to detect preemptive file/pipe creation before erase-install execution
  • Audit local user processes that maintain open file descriptors to erase-install temporary paths
  • Deploy endpoint detection rules for suspicious named pipe creation in system temporary directories

Monitoring Recommendations

  • Enable enhanced auditing for file system operations in /var/tmp/ on managed macOS endpoints
  • Configure SentinelOne behavioral AI to detect credential harvesting patterns associated with named pipe interception
  • Monitor for process execution chains involving erase-install preceded by suspicious file creation in temporary directories
  • Review system logs for unauthorized access attempts to erase-install configuration and credential files

How to Mitigate CVE-2025-70342

Immediate Actions Required

  • Update erase-install to version 40.4 or later containing commit 2c31239
  • Audit systems for any existing named pipes at /var/tmp/dialog.json before running erase-install
  • Restrict physical and remote access to systems where erase-install operations are performed
  • Consider running erase-install operations only from secure, single-user environments

Patch Information

The vulnerability is addressed in erase-install version 40.4, specifically in commit 2c31239fb8519d87577514b3db9ddb0771232a21. The fix modifies how credential output is handled to prevent interception via named pipe attacks. Organizations should update to the patched version immediately.

For technical details on the fix, refer to the GitHub commit and the associated pull request.

Workarounds

  • Manually verify that /var/tmp/dialog.json does not exist as a named pipe before executing erase-install operations
  • Implement pre-execution scripts that check for and remove suspicious files at the hardcoded path
  • Run erase-install from single-user mode or recovery environments where local attacker access is limited
  • Deploy file system monitoring to alert on named pipe creation in /var/tmp/
bash
# Pre-execution check for named pipe attack
if [ -p /var/tmp/dialog.json ]; then
    echo "WARNING: Named pipe detected at credential path - potential attack"
    rm -f /var/tmp/dialog.json
fi

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score6.6

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-732
  • Technical References
  • GitHub Commit Message

  • GitHub Pull Request

  • GitHub CVE-2025-70342 Reference
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English