Azure Machine Learning Job Submission SSRF (CVE-2026-118285)
Published: 2026-11-25 • Researcher: cveForge (PoC); Microsoft Security Response Center (vendor advisory)
- Severity
- Critical
- CVE
- CVE-2026-118285
- Category
- cloud
- Affected product
- Microsoft Azure Machine Learning (hosted workspace / compute and job submission service)
- Affected versions
- No discrete versions published: NVD lists vendor Microsoft, product Azure Machine Learning, version "-", status affected, and tags the CVE as an exclusively hosted service. The upstream PoC states the workspace notebook/server path before the 2026-11-19 patch is affected; see references for Microsoft's current remediation state.
- Disclosed
- 2026-11-25
- Patch status
- Unverified
Tags
References
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-24 |
| Author / Researcher | cveForge (PoC); Microsoft Security Response Center (vendor advisory) |
| CVE / Advisory | CVE-2026-118285 |
| Category | cloud |
| Severity | Critical |
| CVSS Score | 9.6 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N, per MSRC/NVD) |
| Status | PoC |
| Tags | SSRF, CWE-918, Azure, Azure Machine Learning, IMDS, managed-identity, ARM-token, privilege-escalation, cloud, authenticated |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Microsoft Azure Machine Learning (hosted workspace / compute and job submission service) |
| Versions Affected | No discrete versions published: NVD lists vendor Microsoft, product Azure Machine Learning, version “-”, status affected, and tags the CVE as an exclusively hosted service. The upstream PoC states the workspace notebook/server path before the 2026-11-19 patch is affected; see references for Microsoft’s current remediation state. |
| Language / Platform | Python 3 client (stdlib only); Microsoft Azure cloud service |
| Authentication Required | Yes — low-privileged, an ML workspace contributor with a valid bearer token (PR:L) |
| Network Access Required | Yes — network attack vector (AV:N) |
Summary
Azure Machine Learning contains a server-side request forgery vulnerability in its job submission path, rated CVSS 9.6 Critical with a changed scope. The submission API accepts a script URL parameter that it fetches server-side without allowlist validation, so an authenticated and low-privileged workspace contributor can point that fetch at the Azure Instance Metadata Service, at internal Kubernetes service names, or at other cloud metadata endpoints. Because scope is changed, a successful fetch of managed identity credentials gives the attacker the compute instance’s ARM token and, per the upstream analysis, subscription contributor access. Microsoft classifies this as an exclusively hosted-service issue, so no customer-side package upgrade exists.
Vulnerability Details
Root Cause
The Azure Machine Learning job submission API accepts a caller-supplied script URL that the service fetches server-side in order to stage the job’s script. That fetch is performed without destination allowlisting or egress restriction, so the server can be induced to issue HTTP requests to destinations of the attacker’s choosing, including link-local and cluster-internal addresses. This is the classic CWE-918 pattern: attacker-controlled URL input is resolved and fetched from a privileged network position that the caller cannot reach directly. The upstream PoC targets the job submission endpoint and places its payload in the request body’s script URL field.
Attack Vector
An attacker who already holds a valid bearer token for an ML workspace submits a job creation request in which the script URL points at the Azure Instance Metadata Service token endpoint (169.254.169.254 with the identity OAuth2 path and a management resource), an Alibaba IMDS address, or an in-cluster Kubernetes service such as kubernetes.default.svc. The service performs the fetch from its own network context. If the fetched content is returned or attached to the job output, the attacker obtains the response, including the managed identity access token. No user interaction is involved (UI:N) and the attack complexity is low (AC:L).
Impact
Confidentiality and integrity impact are both High, availability is None, and the scope is changed because the vulnerable component grants access to the managed identity and to the wider Azure control plane. Per the upstream repository, the leaked ARM token escalates a workspace contributor to full subscription contributor: reading and modifying all resources in the subscription, including other workspaces, storage accounts, key vaults and compute. In deployments where the workspace reaches a cluster, the same primitive reaches Kubernetes service endpoints and their secrets.
Environment / Lab Setup
OS: Any client OS for the PoC (Python 3.8+); target is the Azure-hosted service
Target: Azure Machine Learning workspace, job submission API
(PoC builds <workspace-url>/api/v2/jobs from the workspace base URL)
Attacker: An account with workspace contributor rights plus a bearer token
Tools: Python 3 standard library (argparse, json, urllib), curl for inspectionSetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Obtain a low-privileged identity — create or use a test identity that has contributor rights on a single ML workspace in a lab subscription, and acquire a bearer token for the ML service.
- Build the submission request — the PoC POSTs to the workspace job endpoint with a command job body whose script URL is the SSRF destination (default: the IMDS managed identity token endpoint).
- Send the request — the PoC issues the POST with the bearer token, a JSON content type and a 15 second timeout.
- Classify the result — HTTP 200, 201 or 202 with access token, compute or metadata markers in the body is treated as vulnerable; HTTP 400 mentioning the script URL field is treated as patched (allowlist validation); anything else is reported as inconclusive.
- Read the returned metadata — the first 2048 bytes of the response body are printed, up to a 400 character preview.
Exploit Code
See exploit.py in this folder (upstream file name: poc.py) and the archived upstream-README.md for attribution.
| |
Expected Output
Expected shape, per the upstream script logic. The code was not executed during ingestion, so this is not a captured transcript.
[+] VULNERABLE — SSRF content returned (HTTP 200)
Data: {"access_token": "...", "expires_on": "...", "resource": "https://management.azure.com/", ...}
[*] Done.A hardened workspace instead answers:
[-] PATCHED — script_url is now allowlist-validated (HTTP 400)Detection & Indicators of Compromise
- Job submission requests whose script URL points at 169.254.169.254, 100.100.100.200, 127.0.0.1, RFC1918 ranges, or cluster-internal hostnames such as kubernetes.default.svc.
- Azure Machine Learning diagnostic logs and Azure Activity logs showing job create operations by an identity that normally does not submit jobs, especially followed by control plane writes.
- Outbound connections from ML compute or the workspace service to the IMDS identity token path with a management resource parameter.
- Sign-in and token acquisition logs for the workspace managed identity outside its normal baseline, particularly token requests made on behalf of a job that should not need ARM access.
- HTTP 400 responses referencing the script URL field in bursts, which indicate probing of the allowlist after the fix.
Example log pattern:
POST /api/v2/jobs 200 body="script_url=http://169.254.169.254/metadata/identity/oauth2/token?...resource=https://management.azure.com/"
GET /metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/ 200SIEM / IDS rule (example):
alert http any any -> any any (msg:"Azure ML job submission SSRF to IMDS"; \
content:"script_url"; http_client_body; content:"169.254.169.254"; http_client_body; \
sid:9002620;)Remediation
| Action | Detail |
|---|---|
| Patch | This is an exclusively hosted service, so remediation is applied by Microsoft. Confirm the current state of the MSRC update guide for CVE-2026-118285 and re-test after the service change. |
| Workaround | Do not let untrusted principals submit jobs with remote script URLs; where the platform allows it, restrict job script sources to workspace datastores or registered assets, and block egress from compute and workspace subnets to link-local metadata addresses. |
| Config Hardening | Enforce least privilege on workspace roles, remove standing contributor assignments, prefer managed identities scoped to the workspace over subscription-level roles, enable Microsoft Defender for Cloud and ML workspace diagnostic settings, and alert on IMDS token acquisition outside baseline. |
References
Notes
Auto-ingested from https://github.com/cveForge/CVE-2026-118285 on 2026-11-25.
Review verdict: real PoC, not a detector. The repository is a single Python client (poc.py) that actively sends a crafted job submission request and inspects the response for SSRF-indicative content; it does not merely scan or inventory hosts, and it contains no defensive logic. Status is PoC rather than Weaponized because only the SSRF trigger is implemented: the script confirms that the service fetched the attacker-chosen URL and prints a preview of the response, but it does not perform the ARM token exchange, does not call the ARM API, and does not carry out any post-exploitation. The escalation to subscription contributor described in the upstream README is an analysis claim that the code does not demonstrate.
Limitations: the PoC requires a pre-existing bearer token for a workspace contributor identity, so it is post-authentication despite the Critical rating. Its success test is heuristic (substring matching on access token, compute or metadata), it uses a hardcoded API base and region placeholder, and the workspace URL format must be adjusted per tenant. Version enumeration is absent from NVD because the target is a hosted service, so affected version claims rest on the upstream README statement about a 2026-11-19 patch. Nothing here was executed during ingestion; validate in a lab subscription you own.
License: the upstream repository carries no LICENSE file, so the archived files are kept with attribution for authorized security research only. The README was copied as upstream-README.md, including its badge and banner markup. Only two files exist upstream and both were archived; .git and any generated artifacts were not copied.
Run only against systems you own or have written authorization to test.
| |