Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. apm-cli
  4. ›
  5. CVE-2026-44641

CVE-2026-44641: Microsoft APM CLI's plugin.json component paths escape plugin root and copy arbitrary host files during install

May 7, 2026

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

References

  • github.com/advisories/GHSA-xhrw-5qxx-jpwr
  • github.com/microsoft/apm
  • github.com/microsoft/apm/security/advisories/GHSA-xhrw-5qxx-jpwr
  • nvd.nist.gov/vuln/detail/CVE-2026-44641

Code Behaviors & Features

Detect and mitigate CVE-2026-44641 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.12

Fixed versions

  • 0.8.12

Solution

Upgrade to version 0.8.12 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

pypi/apm-cli/CVE-2026-44641.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:20:48 +0000.