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.
Published: 2026-10-27
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Patch
AI Analysis

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.

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

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 yet.

History

Tue, 27 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Title Out-of-Directory Script Execution via Malicious NuGet Packages on Octopus Server
Weaknesses CWE-22
CWE-264

Tue, 27 Oct 2026 13:45:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Octopus

Published:

Updated: 2026-10-27T13:15:22.608Z

Reserved: 2026-06-22T10:55:01.254Z

Link: CVE-2026-12887

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-27T14:17:00.590

Modified: 2026-10-27T15:08:50.630

Link: CVE-2026-12887

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T14:45:03Z

Weaknesses
  • CWE-22

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

  • CWE-264