# CVE-2026-104019: Command injection in sagemaker-distribution

> Authenticated users can execute arbitrary commands in other members' Studio Spaces to steal credentials via OS command injection in startup scripts.

- **Severity:** Critical 9.3 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 2 Oct 2026
- **Updated:** 9 Oct 2026
- **Also known as:** GHSA-w64x-664p-7w66

## What is CVE-2026-104019?

CVE-2026-104019 is a critical command injection vulnerability in AWS sagemaker-distribution, published on 2 Oct 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

OS command injection in the Studio Space startup validation script in Amazon SageMaker Distribution 2.x before 2.14.12, 3.x before 3.9.12, 4.0.x before 4.0.11, 4.1.x before 4.1.11, 4.2.x before 4.2.8, 4.3.x before 4.3.5, and 4.4.x before 4.4.3, as used by Amazon SageMaker Unified Studio, might allow an authenticated remote user with project contributor permissions to execute arbitrary commands in another project member's Studio Space and obtain that member's temporary execution role credentials via a crafted connection resource property that is interpolated into a shell invocation without neutralization.

To remediate this issue, users should upgrade to version 2.14.12, 3.9.12, 4.0.11, 4.1.11, 4.2.8, 4.3.5, or 4.4.3, as applicable to the minor line in use. Users on minor lines that have reached end of support must move to a supported minor line, because no patched version will be released for those lines. In Amazon SageMaker Unified Studio, Studio Spaces adopt the latest patch of their minor line on restart once the patched images are deployed, so no version selection is required.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2026-104019?


## How do I fix CVE-2026-104019?

No fix has been published for CVE-2026-104019 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-104019 being exploited?

There is no known exploitation of CVE-2026-104019 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-104019 and fix it if it is affected.

What it is: CVE-2026-104019 is a critical command injection vulnerability in AWS sagemaker-distribution, published on 2 Oct 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-104019 in the wild and no public exploit code.

Affected product: AWS sagemaker-distribution. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-104019/ (Markdown: https://insights.sbomify.com/CVE-2026-104019/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-104019
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-104019
- OSV: https://osv.dev/vulnerability/CVE-2026-104019

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-104019/
Summaries are generated and may contain mistakes; the official description above is the record.
