Description
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.
Published: 2026-07-16
Score: 9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The ubuntu‑pro‑client constructs APT source list files using data directly from a contract server response without sanitization. Because the Python str.format() call is used without validation or newline filtering, an attacker who can send a forged contract response containing newline characters can inject arbitrary configuration lines into root‑owned APT source files. The service also passes an unvalidated additionalPackages[] list into a root‑executed apt‑get install command. This combination permits an attacker to compel the client to fetch and install arbitrary packages, ultimately enabling full‑privilege code execution on the affected host.

Affected Systems

Canonical Ubuntu releases 14.04 through 26.04 LTS and any system that installs the ubuntu‑pro‑client (ubuntu‑advantage‑tools) package are affected. The component ships preinstalled on supported Ubuntu server releases and is automatically enabled on cloud‑provider Ubuntu‑Pro images.

Risk and Exploitability

The vulnerability carries a CVSS score of 9, indicating high criticality. The EPSS score is 0.00342 (less than 1%), and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector requires an attacker to spoof or modify the contract response, which can be achieved through a compromised internal network component, interception of traffic presented with a trusted CA, or exploitation of a local logical defect that provides control over the contract data. Once such a response is delivered, the client writes malicious lines into APT sources and runs apt‑get install as root, delivering arbitrary code execution. Given the severity score and the ability to leverage trusted connections, the risk is significant even though publicly observed exploit data is not yet documented.

Generated by OpenCVE AI on July 31, 2026 at 02:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest ubuntu‑pro‑client (ubuntu‑advantage‑tools) update from Canonical that implements input validation and escape handling before writing APT source files.
  • If the client is not required, uninstall or disable ubuntu‑pro‑client and its automatic attachment feature on the system.
  • Restrict or monitor the network path to the contract server so that only authenticated, signed responses from a trusted source are accepted, blocking any tampered payloads that might inject newline characters.

Generated by OpenCVE AI on July 31, 2026 at 02:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8555-1 Ubuntu Advantage Tools (pro client) vulnerabilities
References
History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Canonical
Canonical ubuntu
Canonical ubuntu-pro-client
Vendors & Products Canonical
Canonical ubuntu
Canonical ubuntu-pro-client

Thu, 16 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 13:00:00 +0000

Type Values Removed Values Added
Description 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.
Title ubuntu-pro-client Input Validation Vulnerability Leading to Arbitrary APT Directive Injection and Remote Code Execution
Weaknesses CWE-20
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Canonical Ubuntu Ubuntu-pro-client
cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2026-07-16T13:31:16.910Z

Reserved: 2026-06-05T15:11:57.169Z

Link: CVE-2026-11386

cve-icon Vulnrichment

Updated: 2026-07-16T13:31:03.562Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T02:15:06Z

Weaknesses
  • CWE-20

    Improper Input Validation