Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPosition to spoof contract response
-
DeliveryDeliver crafted contract JSON with newline in suites/aptURL
-
ExploitInject deb lines into root APT sources
-
ExecutionForce apt-get install of attacker package
-
ImpactExecute code as root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires the attacker to control the content of the Ubuntu Pro contract server response processed by ubuntu-pro-client during attach or refresh - concretely, one of: compromise of the contract/internal infrastructure serving directives, a machine-in-the-middle position using a CA the target host trusts, or a local logical bug that lets attacker data reach the response path. The exploitable inputs are the directives.suites[] and directives.aptURL fields (into which embedded \n newline characters inject arbitrary deb source lines because the client uses str.format() with no escaping/validation/newline filtering) and the additionalPackages[] field (passed positionally into a root-run apt-get install). Limiting factors: high attack complexity (AC:H) because the adversary must first achieve contract-response control rather than simply reach a network service; the system must actually perform an attach/refresh against the attacker-influenced channel; and the component must be present and attached (default on supported Ubuntu Server releases and auto-attached on cloud Ubuntu Pro images, which widens exposure). No target-side authentication or user interaction is required (PR:N/UI:N). |
| Impact | The CVSS 3.1 base score is 9.0 (Critical) with vector AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H: network vector, no privileges and no user interaction, but high attack complexity and a changed scope reflecting the crossing from a tampered network response into root-owned system configuration. The high-complexity metric is the key limiter - exploitation is not a simple unauthenticated request against a listening service; it requires the attacker to occupy a privileged position that lets them forge or alter the contract response (compromised internal/contract infrastructure, a machine-in-the-middle using a certificate trusted by the host, or a local logical bug). No EPSS score, SSVC decision, KEV entry, or POC was provided in the input, so probabilistic and real-world-exploitation signals are unknown rather than low - this should be stated plainly rather than read as 'low risk'. This is a genuine high-priority patching item because the impact is root RCE on a ubiquitously deployed component, but the practical barrier (control over the contract channel) means opportunistic mass exploitation is unlikely; the realistic threat model is a capable adversary who already has network position or infrastructure access, making it more relevant to targeted and supply-chain-style scenarios than internet-wide scanning. |
| Exploit ScenarioDerived | An attacker who controls a malicious or compromised contract endpoint - or who can machine-in-the-middle the client using a certificate the host already trusts - returns a crafted contract response where directives.suites[] or directives.aptURL contains embedded newline characters plus an attacker package name in additionalPackages[]. When the pro client attaches or refreshes, it writes the injected deb source lines into a root-owned APT sources file and then runs apt-get install for the attacker's package, fetching and installing it as root. No public exploit code has been identified at time of analysis, but the flaw is deterministic once contract-response control is achieved. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 16, 2026
Root-level remote code execution in Canonical's ubuntu-pro-client (formerly ubuntu-advantage-tools) allows an attacker who can spoof or tamper with the Ubuntu Pro contract server response to inject arbitrary APT source lines and install malicious root-owned packages. The client builds /etc/apt/sources.list.d entries from the server's directives.suites[] and directives.aptURL fields via Python str.format() without escaping or newline filtering, and passes additionalPackages[] positionally into a root-run apt-get install. Because the component is preinstalled on supported Ubuntu Server releases and auto-attaches on cloud Ubuntu Pro images the exposure is broad; there is no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Apply the Canonical-provided update to ubuntu-pro-client as soon as it is available - patch status: no exact fix version is present in the provided input, so treat the fixed version per Ubuntu release as authoritative from the advisory at https://ubuntu.com/security/CVE-2026-11386, and run 'apt-get update && apt-get install --only-upgrade ubuntu-advantage-tools ubuntu-pro-client' after confirming the target version there. Because exploitation depends on tampering with the contract channel, effective compensating controls until patched are: ensure the client only communicates with the legitimate Canonical contract endpoint over strictly validated TLS and restrict/monitor egress so the contract host cannot be redirected (side effect: may break air-gapped or proxy-based Pro attachment); on cloud images, avoid or gate the default auto-attach on untrusted networks (side effect: entitlements such as ESM/Livepatch will not activate automatically); and audit /etc/apt/sources.list.d/ubuntu-*.list and DEB822 files for unexpected or multi-line entries while monitoring apt-get install invocations originating from the pro client. Do not rely on these controls as a substitute for the vendor patch, since a trusted-CA machine-in-the-middle can defeat TLS-only assumptions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is ubuntu-pro-client, the Python-based agent that attaches an Ubuntu system to Canonical's Ubuntu Pro/Advantage contract service to enable entitlements such as ESM, Livepatch and FIPS. During attach/refresh the client receives a JSON contract response and writes APT repository configuration files (classic sources.list.d/ubuntu-*.list files or their DEB822 equivalents) by interpolating server-supplied strings - directives.suites[] and directives.aptURL - into templates using Python's str.format(). Per CWE-20 (Improper Input Validation), the client performs no escaping, validation, or newline stripping on this data, so a value containing embedded \n characters breaks out of the intended single-line directive and injects additional attacker-controlled deb configuration lines into a root-owned file. The unvalidated additionalPackages[] field compounds this: its entries are passed positionally into a root-executed apt-get install, so injected sources plus an attacker-chosen package name yield code execution as root. The trust assumption being violated is that the contract server response is authentic and well-formed.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Network-delivered via the contract channel with no target-side privileges or interaction, but AC:H because the attacker must first control or spoof the contract response; scope changes as tampered data becomes root config, yielding full C/I/A impact.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
DescriptionCVE.org
An input validation and injection vulnerability exists in Canonical ubuntu-pro-client (formerly ubuntu-advantage-tools). The client constructs APT source files (such as /etc/apt/sources.list.d/ubuntu-.list or their DEB822 equivalents) using data received directly from the contract server response via the directives.suites[] and directives.aptURL fields. Because the client utilizes Python's str.format() to write these files without performing escaping, validation, or newline character filtering, a malicious or tampered contract response containing embedded newline (\n) characters can successfully inject arbitrary, attacker-controlled deb configuration lines into root-owned APT sources. When combined with the unvalidated additionalPackages[] field-which is passed positionally into a root-executed apt-get install command-an attacker capable of spoofing or manipulating the contract response (e.g., via a compromised internal infrastructure, an intercepted connection utilizing a trusted CA, or local logical bugs) can force the client to fetch and install malicious packages. This ultimately leads to arbitrary code execution with root privileges on the affected system. This component is preinstalled on supported Ubuntu Server releases and auto-attaches by default on cloud provider Ubuntu Pro images.
Articles & Coverage 1
Executive ViewAI
Canonical's ubuntu-pro-client, automatically deployed on all supported Ubuntu Server releases and cloud-based Ubuntu Pro instances, is vulnerable to root-level compromise. No public exploit identified at time of analysis; however, the absence of a vendor patch and widespread deployment across enterprise Ubuntu environments create unquantified risk requiring immediate compensating controls.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement network firewall rules restricting outbound connections from ubuntu-pro-client to Ubuntu Pro contract servers, or deploy TLS certificate pinning to detect server response tampering; (2) disable auto-attach functionality on non-production and non-dependent systems via ubuntu-pro status command or configuration file modification; (3) deploy endpoint detection and response (EDR) or log aggregation to monitor /etc/apt/sources.list.d changes and unauthorized apt-get executions with root privileges; (4) implement mandatory change control or code review processes for any package installation on production systems; (5) consider air-gapping or offline-first package management for high-criticality infrastructure; (6) apply restrictive SELinux or AppArmor policies to confine ubuntu-pro-client process capabilities.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-44911
GHSA-9836-vm3x-qwmj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB