Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position to spoof contract response
  2. Delivery
    Deliver crafted contract JSON with newline in suites/aptURL
  3. Exploit
    Inject deb lines into root APT sources
  4. Execution
    Force apt-get install of attacker package
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ubuntu-pro-client (ubuntu-advantage-tools) 0 <37.3
Ubuntu 18.04 LTS patch: 37.1ubuntu0~18.04.1
Ubuntu 22.04 LTS patch: 37.2ubuntu~22.04.1
Ubuntu 14.04 LTS patch: 19.7ubuntu0.1
Ubuntu 24.04 LTS patch: 37.2ubuntu~24.04.1
Ubuntu 16.04 LTS patch: 37.1ubuntu0~16.04.1
Ubuntu 20.04 LTS patch: 37.1ubuntu0~20.04.1
Ubuntu 26.04 LTS patch: 37.2ubuntu0.1

Affected Packages

euvd ubuntu_pro_client_ubuntu_advantage_tools fix: 37.3

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

Vendor (canonical) PRIMARY 9.0 CRITICAL
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.0 CRITICAL

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
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

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Ubiquitous
preinstalled on all supported Ubuntu Server LTS and cloud Pro images
Social Media
2
Sightings
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy