A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Read More
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-2026-45539

CVE-2026-45539: Microsoft APM Path Traversal Vulnerability

CVE-2026-45539 is a path traversal vulnerability in Microsoft APM that allows symlink exploitation to access unauthorized files. This article covers technical details, affected versions 0.5.4-0.12.4, and mitigations.

Published: May 21, 2026

CVE-2026-45539 Overview

CVE-2026-45539 affects Microsoft APM, an open-source dependency manager for AI agents. The flaw exists in apm-cli versions 0.5.4 through 0.12.4. Two primitive integrators enumerate package files using bare Path.glob() and Path.rglob() calls, then read each match with Path.read_text(). These calls transparently follow symbolic links. A symlink committed inside a remote APM dependency is preserved during clone and dereferenced during integration. The resolved content is written as a regular file into the project's deploy directories. Microsoft fixed the issue in version 0.13.0.

Critical Impact

A malicious APM dependency can exfiltrate arbitrary host files into a developer's repository, where the deploy roots are not covered by the auto-generated .gitignore and are staged by git add by default.

Affected Products

  • Microsoft APM apm-cli versions 0.5.4 through 0.12.4
  • Projects consuming remote APM dependencies via .apm/prompts/ or .apm/agents/
  • Downstream repositories that stage apm_modules/ deploy output with git add

Discovery Timeline

  • 2026-05-15 - CVE-2026-45539 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-45539

Vulnerability Analysis

The vulnerability is a symlink-following flaw classified under [CWE-59] (Improper Link Resolution Before File Access). The apm-cli integrator code walks dependency directories with Path.glob() and Path.rglob(), neither of which excludes symbolic links by default. When the integrator calls Path.read_text() on a matched path, Python's standard library transparently dereferences the symlink and returns the target file's contents. The integrator then writes that content to a regular file under the consuming project's deploy directory.

Because the malicious payload is a symlink rather than file content, the package content_hash, the pre-deploy SecurityGate scan, and apm audit do not flag the dependency. The deploy roots are also absent from the auto-generated .gitignore, so resulting files are staged by git add . and silently committed by developers who trust their dependency tree.

Root Cause

The root cause is a missing symlink check in two integrator routines. Neither integrator validates that the resolved path stays inside the package directory, and neither rejects entries where Path.is_symlink() returns true. Combining permissive file enumeration with content-hash validation that only covers the symlink stub creates a trust gap between scanning and deployment.

Attack Vector

An attacker publishes a malicious APM dependency containing a symlink at .apm/prompts/<x>.prompt.md or .apm/agents/<x>.agent.md pointing to a sensitive file such as ~/.ssh/id_rsa, ~/.aws/credentials, or /etc/passwd. When a victim adds the dependency, apm clone preserves the symlink verbatim into apm_modules/. The next integration run dereferences the symlink and writes the host file's contents into the deploy directory as a normal tracked file. A subsequent git add and git push exfiltrates the data to the developer's remote repository.

The exploitation chain requires user interaction in the form of installing the malicious dependency. See the GitHub Security Advisory GHSA-q5pp-gvjg-h7v4 for vendor-confirmed technical details.

Detection Methods for CVE-2026-45539

Indicators of Compromise

  • Symbolic links present anywhere under apm_modules/<package>/.apm/prompts/ or .apm/agents/
  • Files in project deploy roots whose contents match sensitive host paths such as private keys, cloud credentials, or shell history
  • Git commits adding unexpected files under APM deploy directories shortly after apm install or apm update

Detection Strategies

  • Scan apm_modules/ recursively for symlinks using find apm_modules -type l and treat any result as suspicious
  • Compare integrator output files against known-good prompt and agent templates to spot foreign content
  • Audit git diff --cached output before commits when APM dependencies have changed

Monitoring Recommendations

  • Alert on developer workstations that produce git commits containing private key headers, AWS access key prefixes, or /etc/ file fragments
  • Track apm-cli versions across the development fleet and flag any installation below 0.13.0
  • Log all apm install, apm clone, and integration commands to a central data lake for retrospective hunting

How to Mitigate CVE-2026-45539

Immediate Actions Required

  • Upgrade apm-cli to version 0.13.0 or later on every developer workstation and CI runner
  • Inventory existing apm_modules/ directories and remove any symbolic links found
  • Rotate credentials that may have been resident on machines that ran vulnerable apm-cli versions against untrusted dependencies
  • Review recent git history in projects using APM for unexpected files staged under deploy roots

Patch Information

Microsoft published the fix in apm-cli0.13.0. The patched integrators reject symlinks during enumeration and validate that resolved paths remain inside the package root. Refer to the GitHub Security Advisory GHSA-q5pp-gvjg-h7v4 for the full advisory and patch reference.

Workarounds

  • Pin APM dependencies to vetted internal mirrors until upgrade to 0.13.0 is complete
  • Add APM deploy roots to .gitignore so that integrator output is never staged automatically
  • Run apm install inside a sandboxed container with no access to credential stores or SSH keys
  • Manually inspect apm_modules/ for symlinks before invoking the integration step
bash
# Configuration example
# Detect symlinks introduced by malicious APM dependencies
find apm_modules -type l -printf '%p -> %l\n'

# Enforce minimum apm-cli version
pip install --upgrade 'apm-cli>=0.13.0'

# Exclude APM deploy roots from accidental commits
printf '\n# APM deploy output\napm_modules/\n.apm/deploy/\n' >> .gitignore

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechApm

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-59
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-30386: Microsoft 365 Apps Use After Free Flaw

  • CVE-2025-59234: Microsoft 365 Apps Use After Free Flaw

  • CVE-2025-49702: Microsoft 365 Apps RCE Vulnerability

  • CVE-2025-59227: Microsoft 365 Apps Use-After-Free RCE
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