Skip to main content

Microsoft APM CLI EUVDEUVD-2026-30562

| CVE-2026-44641 HIGH
Path Traversal (CWE-22)
2026-05-07 https://github.com/microsoft/apm GHSA-xhrw-5qxx-jpwr
7.1
CVSS 3.1 · Vendor: https://github.com/microsoft/apm
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker publishes malicious plugin
  2. Delivery
    Victim adds plugin to apm.yml
  3. Exploit
    Victim runs 'apm install'
  4. Install
    APM CLI parses plugin.json without path validation
  5. C2
    Traversal path copies external host file to .apm/
  6. Execute
    Prompt integrator auto-writes stolen content to .github/prompts/
  7. Impact
    Victim commits exfiltrated file to repository

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to install a malicious or compromised plugin using the 'apm install' command against Microsoft APM CLI version 0.8.11 or earlier. The attacker must craft a plugin with a malicious plugin.json manifest containing absolute paths (e.g., 'D:\absolute\path\to\victim\secret.md') or relative directory traversal sequences (e.g., '../../../sensitive-file.txt') in one or more of the following manifest fields: 'agents', 'skills', 'commands', or 'hooks'. The targeted file or directory must be readable by the user account executing the APM CLI installation command. The malicious plugin can be delivered either as a local plugin referenced in apm.yml (local install path via install.py:2007-2015) or as a remote package downloaded from a Git repository (remote install path via github_downloader.py:2224-2230). No special product configuration or non-default settings are required-default APM CLI installations are vulnerable. The victim must have write permissions to the project directory where .apm/ and .github/prompts/ directories will be created. Limiting factors include: the requirement for user interaction to initiate installation (UI:R in CVSS vector), the local attack vector requiring prior positioning of the malicious plugin in the victim's dependency chain, and the constraint that only files readable by the installing user can be exfiltrated (cannot escalate file system permissions). The auto-integration write-back to .github/prompts/ specifically requires the copied file to land in .apm/prompts/ with a .prompt.md extension, but the core vulnerability allows copying arbitrary files to any .apm/ subdirectory matching the manifest field type.

Impact

Real-world risk assessment synthesizing multiple signals reveals moderate-to-high priority for organizations using Microsoft APM CLI in developer workflows. CVSS 7.1 (AV:L/AC:L/PR:N/UI:R) accurately reflects the attack characteristics: local attack vector requires the malicious plugin to be on the victim's machine, low complexity with straightforward path traversal exploitation, no privileges required once plugin installation begins, but user interaction required to initiate 'apm install'. High confidentiality and integrity impact with no availability impact aligns with the ability to exfiltrate readable files and inject content into version-controlled project directories. No EPSS score or CISA KEV status provided in input data, indicating no confirmed widespread or automated exploitation at time of analysis. However, the existence of a verified, maintainer-ready proof-of-concept with complete exploit scripts (attached zip file Microsoft_APM_Plugin_Path_Escape_Report_Final.zip) significantly increases exploitation likelihood. The supply-chain attack vector is particularly concerning: developers who install malicious or compromised plugins (including transitive dependencies) could have local configuration files, credentials, or proprietary source materials copied into .github/ directories that are commonly committed to repositories. The low attack complexity and availability of working exploit code offset the local-only vector. Priority should be high for organizations using APM CLI 0.8.11 or earlier, especially in environments with sensitive local files or where .github/ content is automatically synced to shared repositories. The CVSS score alone would suggest medium priority, but the supply-chain trust boundary violation and proof-of-concept availability elevate this to a recommended immediate patch.

Exploit ScenarioDerived

An attacker publishes a malicious APM plugin to a public marketplace or compromises an existing popular plugin through supply-chain injection. The attacker crafts a plugin.json manifest setting the 'commands' field to an absolute path targeting common sensitive file locations such as '/home/user/.aws/credentials' on Linux or 'C:\Users\User\.ssh\id_rsa' on Windows. A developer adds this plugin as a dependency in their project's apm.yml file or includes a legitimate plugin that transitively depends on the malicious package. When the developer runs 'apm install' to set up their environment, the APM CLI copies the targeted credential file into .apm/prompts/ and auto-integrates it into .github/prompts/stolen.prompt.md in their project directory. The developer commits changes to version control without noticing the exfiltrated file, pushing AWS credentials or SSH keys to a shared repository where the attacker or other unauthorized parties can access them. The proof-of-concept demonstrates this exact scenario with a working exploit that successfully copies external host files into project-controlled paths through a single installation command.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Path traversal in Microsoft APM CLI 0.8.11 and earlier allows malicious plugins to copy arbitrary readable host files into managed project directories during installation. The plugin_parser.py module fails to validate that component paths in plugin.json manifest fields (agents, skills, commands, hooks) remain within the plugin root, enabling attackers to use absolute paths or ../ traversal sequences to exfiltrate local files. Verified proof-of-concept demonstrates a malicious plugin copying external markdown files into .github/prompts/ through the auto-integration pipeline. Exploitation requires user interaction (installing a malicious plugin), but no authentication is required once the user initiates installation. CVSS 7.1 (High) reflects significant confidentiality and integrity impact in a local supply-chain attack scenario. Vendor-released patch available in apm-cli 0.8.12 per GitHub advisory GHSA-xhrw-5qxx-jpwr. No active exploitation (CISA KEV) confirmed, but publicly available exploit code exists with complete proof-of-concept including runnable scripts.

RemediationAI

Upgrade immediately to apm-cli version 0.8.12 or later, which addresses the path traversal vulnerability per vendor advisory GHSA-xhrw-5qxx-jpwr (https://github.com/microsoft/apm/security/advisories/GHSA-xhrw-5qxx-jpwr and https://github.com/advisories/GHSA-xhrw-5qxx-jpwr). Install the patched version using 'pip install --upgrade apm-cli==0.8.12' or later. If immediate upgrade is not feasible, implement these compensating controls with noted trade-offs: (1) Audit all plugin dependencies in apm.yml and remove any third-party or untrusted plugins, limiting installs to Microsoft-official or internally-vetted plugins only (reduces functionality and blocks community plugins). (2) Run 'apm install' in isolated containerized or virtual machine environments where no sensitive host files are readable, then manually copy only verified .apm/ output to production environments (adds operational overhead and delays). (3) Implement file system permissions to restrict read access from the user account running APM CLI to only project-specific directories, preventing access to sensitive configuration files elsewhere on the system (may break legitimate workflows requiring broader file access). (4) Review .apm/ and .github/prompts/ directories after every plugin installation for unexpected files and diff against known-good baselines before committing to version control (manual effort required, does not prevent initial exfiltration). After patching, verify the fix by attempting to install a test plugin with absolute or ../ paths in plugin.json manifest fields and confirming that installation fails with a containment violation error.

Affected VersionsENISA

apm < 0.8.12

Affected Packages

pypi apm-cli fix: 0.8.12
euvd apm fix: 0.8.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Microsoft APM (AI Plugin Manager) CLI is a Python-based dependency management tool for AI agent components. The vulnerability exists in the plugin normalization workflow where the plugin_parser.py module processes plugin.json manifests during installation. The _resolve_sources() method at lines 336-348 joins attacker-controlled path strings from manifest fields (agents, skills, commands, hooks) with the plugin_path base directory using path concatenation, but only validates file existence and symlink status without performing canonical path resolution or containment checks. This violates CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) principles. The codebase already implements a secure pattern in _read_mcp_file() at lines 195-210 that resolves candidate paths and rejects escapes, but this pattern was not applied consistently to all manifest-controlled fields. The vulnerability spans both local plugin installation (install.py:2007-2015) and remote package downloads (github_downloader.py:2224-2230 through validation.py), with copied files automatically integrated into project directories by prompt_integrator.py. The affected package identifier is pkg:pip/apm-cli with CPE-style identification confirming Python pip distribution.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/microsoft/apm) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/microsoft/apm) · only source for this CVE.

CVSS VectorVendor: https://github.com/microsoft/apm

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Summary

Microsoft APM normalizes marketplace plugins by copying plugin components referenced in plugin.json into .apm/. The manifest fields agents, skills, commands, and hooks are attacker-controlled, but the implementation does not enforce that those paths remain inside the plugin directory. A malicious plugin can therefore use absolute paths or ../ traversal paths to copy arbitrary readable host files or directories from the installer's machine during apm install.

In the verified primary proof of concept, a malicious plugin sets plugin.json.commands to an external markdown file. A single apm install copies that outside file into .apm/prompts/ and then auto-integrates it into .github/prompts/secret.prompt.md in the victim project. This is a local supply-chain trust-boundary violation with direct confidentiality and integrity impact.

Reviewed version and commit:

  • apm-cli version 0.8.11
  • main commit 70b34faa16a5a783424698163deeb028854fd23a

Details

Root cause:

  • src/apm_cli/deps/plugin_parser.py:336-348
  • _resolve_sources() joins manifest-controlled agents, skills, commands, and directory-form hooks paths with plugin_path
  • it checks only exists() and is_symlink()
  • it does not resolve the candidate and verify containment inside the plugin root
  • src/apm_cli/deps/plugin_parser.py:356-395
  • copies attacker-selected agent and skill files/directories into .apm/
  • src/apm_cli/deps/plugin_parser.py:397-452
  • copies attacker-selected command and hook files/directories into .apm/
  • src/apm_cli/deps/plugin_parser.py:436-442
  • string-form hook config paths are also copied without a root-containment check

There is already a safer precedent in the same module:

  • src/apm_cli/deps/plugin_parser.py:195-210
  • _read_mcp_file() resolves the candidate path
  • rejects paths escaping the plugin root
  • rejects symlinks

Reachability:

  • Local install path:
  • src/apm_cli/commands/install.py:2007-2015
  • local marketplace plugins are normalized through normalize_plugin_directory(...)
  • Remote install path:
  • src/apm_cli/deps/github_downloader.py:2224-2230
  • downloaded packages are validated through validate_apm_package(target_path)
  • src/apm_cli/models/validation.py:164-172, 224-226, 304-324
  • marketplace plugins are normalized through the same vulnerable path after clone

Project write-back path:

  • src/apm_cli/integration/prompt_integrator.py:38-56
  • reads .apm/prompts/*.prompt.md
  • src/apm_cli/integration/prompt_integrator.py:170-189
  • writes prompt files into .github/prompts/
  • src/apm_cli/commands/install.py:2496-2514
  • auto-integrates package primitives after install

This means a malicious dependency can cause APM to read from outside the dependency itself and materialize host-local content into managed install output and, in the verified prompt case, directly into the victim project.

PoC

The attached zip contains a complete maintainer-ready proof-of-concept package, including runnable scripts, payload templates, captured output, and the exact validation environment.

Primary end-to-end apm install reproduction:

  1. Install APM from the reviewed source tree (apm-cli 0.8.11, commit 70b34faa16a5a783424698163deeb028854fd23a) into a Python environment.
  2. Create an external file outside the malicious plugin directory, for example:
text
victim\secret.md

with content:

md
# STOLEN VIA APM INSTALL
  1. Create a malicious plugin with this minimal plugin.json:
json
{
  "name": "evil-plugin",
  "commands": "D:\\absolute\\path\\to\\victim\\secret.md"
}
  1. Create a minimal apm.yml that references the malicious plugin.
  2. Run:
powershell
apm install
  1. Observe that APM completes successfully and writes:
text
.github/prompts/secret.prompt.md
  1. Observe that the resulting prompt file contains the external host file content:
md
# STOLEN VIA APM INSTALL

Verified console output from the included PoC:

text
[>] Installing dependencies from apm.yml...
  [+] ./evil-plugin (local)
  |-- 1 prompts integrated -> .github/prompts/

[*] Installed 1 APM dependency.
PoC succeeded.
Integrated into project: ...\.github\prompts\secret.prompt.md
Integrated content:
# STOLEN VIA APM INSTALL

Secondary remote-parity reproduction:

  • The attached reproduce-remote-parity.py exercises GitHubPackageDownloader.download_package(...) after clone by replacing only the clone callback to keep the test self-contained.
  • It confirms the same unsafe normalization path copies an outside host file into:
text
<download-target>/.apm/prompts/secret.prompt.md

Impact

This is a path traversal / arbitrary local file copy issue in the package install flow.

Who is impacted:

  • any user who runs apm install against a malicious or compromised plugin dependency
  • both direct and transitive dependency consumers

What an attacker gains:

  • ability to copy arbitrary readable host files into .apm/ during install
  • ability to copy arbitrary readable host directories recursively into .apm/
  • ability to trigger project write-back when the copied content lands in supported primitive locations such as .apm/prompts/

Practical impact:

  • local notes, markdown, source material, or configuration files can be staged into repository-controlled paths
  • copied prompt files are automatically written into .github/prompts/, increasing the chance that sensitive or attacker-selected content is committed, synced, or consumed by other tooling
  • the issue breaks the expected trust boundary that a dependency install should copy only content belonging to the dependency itself

Mitigation

Recommended fix:

  1. Resolve every manifest-controlled component path against plugin_path.resolve().
  2. Reject absolute or relative paths that escape the plugin root.
  3. Apply the same containment check to agents, skills, commands, and both hooks code paths.
  4. Reject symlinks before copying.
  5. Add regression tests for:
  • absolute file path in commands
  • absolute directory path in commands
  • ../ traversal in agents
  • ../ traversal in skills
  • ../ traversal in hooks
  • confirmation that only in-root files remain accepted

Attachment

Microsoft_APM_Plugin_Path_Escape_Report_Final.zip

Executive ViewAI

Why It Matters

Microsoft APM CLI versions 0.8.11 and earlier contain a path traversal vulnerability that allows malicious plugins to exfiltrate arbitrary files from affected systems during installation. Organizations using APM CLI risk unauthorized access to sensitive local files through supply-chain compromise when users install untrusted plugins, directly impacting confidentiality and integrity of development environments and potentially exposing credentials or proprietary code.

Business Impact: High
Compensating Controls

Vendor-released patch: APM CLI 0.8.12. Until patched, restrict plugin installation to pre-approved signed plugins from verified sources only; disable automatic plugin integration pipelines; implement network segmentation to limit local file access from development tools; conduct code review of any plugins before installation.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy