---
id: CVE-2026-12887
title: >-
  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.
summary: >-
  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.
severity: medium
cvss: 5.1
cvssVector: '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'
cvssSource: cna
vendor: Octopus Deploy
product: Octopus Server
affected:
  - octopus_server >= 2023.0.0 < 2026.1.674
  - octopus_server >= 2026.1 < 2026.1.674
  - octopus_server >= 2026.2 < 2026.2.973
  - octopus_server >= 2026.3 < 2026.3.5839
published: '2026-10-27'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T13:15:22.608Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-12887'
references:
  - url: 'https://advisories.octopus.com/post/2026/sa2026-14/'
tags:
  - cve.org
ingestedAt: '2026-10-27T16:11:59.343Z'
---

## Overview

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.

## Affected

- `octopus_server >= 2023.0.0 < 2026.1.674`
- `octopus_server >= 2026.1 < 2026.1.674`
- `octopus_server >= 2026.2 < 2026.2.973`
- `octopus_server >= 2026.3 < 2026.3.5839`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
