A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-31240

CVE-2025-31240: Apple macOS AFP Share DoS Vulnerability

CVE-2025-31240 is a denial of service vulnerability in Apple macOS that causes system termination when mounting malicious AFP shares. This article covers technical details, affected versions, and mitigation.

Published: May 4, 2026

CVE-2025-31240 Overview

CVE-2025-31240 is an input validation flaw [CWE-20] in Apple macOS that allows a maliciously crafted Apple Filing Protocol (AFP) network share to terminate the operating system. When a user mounts the malicious share, improper checks in the AFP client cause a system crash, resulting in denial of service.

Apple addressed the issue with improved checks in macOS Sequoia 15.5, macOS Sonoma 14.7.6, and macOS Ventura 13.7.6. The vulnerability is exploitable over the network without authentication or user privileges, but requires a user to initiate the AFP mount operation.

Critical Impact

A remote attacker hosting a crafted AFP share can force a complete system termination on vulnerable macOS endpoints, disrupting availability for any user who mounts the share.

Affected Products

  • Apple macOS Ventura (versions prior to 13.7.6)
  • Apple macOS Sonoma (versions prior to 14.7.6)
  • Apple macOS Sequoia (versions prior to 15.5)

Discovery Timeline

  • 2025-05-12 - CVE-2025-31240 published to NVD
  • 2025-05-12 - Apple releases security patches in macOS Sequoia 15.5, Sonoma 14.7.6, and Ventura 13.7.6
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2025-31240

Vulnerability Analysis

The vulnerability resides in the macOS AFP client code path responsible for processing responses from a remote AFP server during share mounting. According to Apple's advisory, the issue was addressed with improved checks, indicating that input from the server was not adequately validated before use.

When a user mounts an AFP share, the client parses protocol messages and metadata sent by the server. A malformed or malicious response causes the kernel or AFP subsystem to reach an unrecoverable state, terminating the system. The CWE-20 classification confirms the root cause is improper input validation rather than a memory safety bug with code execution potential.

The CVSS vector indicates impact is limited to availability, with no confidentiality or integrity loss. This aligns with system termination behavior rather than arbitrary code execution.

Root Cause

The AFP client does not perform sufficient validation of fields within network responses received from an AFP server. Crafted values trigger a fault condition during share mount processing, causing the operating system to terminate.

Attack Vector

An attacker stands up a malicious AFP server reachable by the target. The attacker then induces the victim to mount the share using afp:// URLs delivered through phishing, malicious documents, web redirects, or shared links. Upon connection, the server returns crafted protocol data that triggers the fault. No credentials are required because the malformed data can be sent during the initial protocol handshake.

The vulnerability cannot be triggered without the user action of mounting the share, but a single click on an afp:// link in many macOS contexts is sufficient to initiate the mount. See the Apple Support advisory for macOS Sequoia 15.5 for vendor details.

Detection Methods for CVE-2025-31240

Indicators of Compromise

  • Unexpected kernel panics or system terminations on macOS hosts shortly after AFP mount activity
  • Outbound TCP connections to untrusted hosts on port 548 (AFP) from user endpoints
  • Presence of afp:// URLs in email, chat, or browser history immediately preceding a crash
  • Crash reports referencing AFP client components in /Library/Logs/DiagnosticReports/

Detection Strategies

  • Inventory macOS endpoints and flag systems running versions prior to Sequoia 15.5, Sonoma 14.7.6, or Ventura 13.7.6
  • Monitor endpoint telemetry for mount_afp process executions targeting external or non-corporate hosts
  • Correlate kernel panic events with preceding network connections to TCP port 548
  • Inspect proxy and DNS logs for afp:// URL handling and resolution of unexpected file-sharing hosts

Monitoring Recommendations

  • Forward macOS unified logs and crash reports to a central SIEM for kernel panic correlation
  • Alert on first-time AFP connections from endpoints that have no historical AFP usage
  • Track patch compliance for the affected macOS branches across the fleet

How to Mitigate CVE-2025-31240

Immediate Actions Required

  • Update macOS endpoints to Sequoia 15.5, Sonoma 14.7.6, or Ventura 13.7.6 as documented in Apple's advisories
  • Block outbound TCP port 548 at the network perimeter where AFP is not required
  • Educate users to avoid clicking afp:// links from untrusted sources

Patch Information

Apple released fixes on 2025-05-12. Apply the appropriate update based on the macOS branch in use:

  • macOS Ventura 13.7.6
  • macOS Sonoma 14.7.6
  • macOS Sequoia 15.5

Workarounds

  • Restrict or disable AFP client functionality on endpoints that do not require legacy file sharing
  • Enforce egress filtering to permit AFP (TCP/548) only to known internal file servers
  • Use mobile device management policies to prevent users from mounting external afp:// shares
bash
# Block outbound AFP traffic with macOS pf firewall (example)
echo "block out proto tcp to any port 548" | sudo pfctl -ef -

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMacos

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.62%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • Full Disclosure Mailing List #7

  • Full Disclosure Mailing List #8

  • Full Disclosure Mailing List #9
  • Vendor Resources
  • Apple Support Article #122716

  • Apple Support Article #122717

  • Apple Support Article #122718
  • Related CVEs
  • CVE-2025-43238: macOS Integer Overflow DoS Vulnerability

  • CVE-2025-46302: macOS/iOS HID Device DoS Vulnerability

  • CVE-2025-46290: macOS Denial-of-Service Vulnerability

  • CVE-2026-20602: macOS Denial-of-Service Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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