CVE-2026-12887

Out-of-Directory Script Execution via Malicious NuGet Packages on Octopus Server

Published Oct 27, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
In affected versions of Octopus Server, a user with permission to upload a malicious nuget package is able to deploy a script step so the script executes outside of the parent directory.

Analysis

AI-generated

Technical impact

In certain releases of Octopus Server, an attacker who has permission to upload a NuGet package can craft a malicious package and deploy a script step that runs outside the intended parent directory. This allows the script to execute with elevated scope, potentially reading, modifying, or exfiltrating files that the deployed project should not access, thereby violating confidentiality and integrity of the system. The flaw is rooted in improper path handling and privilege management during NuGet deployment, categorised as a path traversal and privilege‑escalation weakness.

Affected Systems

The vulnerability affects Octopus Deploy’s Octopus Server product. Specific version ranges are not listed in the provided data, so any Octopus Server installation that matches the description should be considered at risk until a vendor update confirms remediation.

Risk and Exploitability

With a CVSS score of 5.1, the risk is moderate but not trivial. No EPSS data is available, and the vulnerability is not yet in CISA’s KEV catalog, suggesting limited public exploitation to date; however, the attack requires only the ability to upload a package, a capability that is commonly granted to developers or build engineers. If an attacker gains that permission, they can deploy a script that runs outside the parent directory, enabling broad access to the file system or network resources. Given the potential for significant impact, users should consider strong monitoring and access controls.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Octopus Server patch or upgrade to a version where the path handling for NuGet packages is fixed
  • Limit the NuGet upload permission to a minimal trusted subset of users and audit those accounts for anomalous activity
  • Review execution settings for script steps to ensure they are confined to intended directories and enable logging to detect out‑of‑directory execution

Generated by OpenCVE AI on October 27, 2026 at 14:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Octopus
Octopus octopus Server
Vendors & Products Octopus
Octopus octopus Server
Type Values Removed Values Added
Title Out-of-Directory Script Execution via Malicious NuGet Packages on Octopus Server
Weaknesses CWE-22
CWE-264
Type Values Removed Values Added
Description In affected versions of Octopus Server, a user with permission to upload a malicious nuget package is able to deploy a script step so the script executes outside of the parent directory.
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-264

Sources

Status
PUBLISHED
Assigner
Octopus
Published
Updated
Nov 4, 2026, 5:17 PM
Reserved
Jun 22, 2026, 10:55 AM
Status
Awaiting Analysis
Published
Oct 27, 2026, 2:17 PM
Modified
Nov 4, 2026, 6:17 PM