{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-11386","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","state":"PUBLISHED","assignerShortName":"canonical","dateReserved":"2026-06-05T15:11:57.169Z","datePublished":"2026-07-16T12:16:02.508Z","dateUpdated":"2026-07-16T13:31:16.910Z"},"containers":{"cna":{"title":"ubuntu-pro-client Input Validation Vulnerability Leading to Arbitrary APT Directive Injection and Remote Code Execution","datePublic":"2026-07-16T12:00:00.000Z","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-20","description":"CWE-20 Improper input validation","type":"CWE"}]}],"impacts":[{"capecId":"CAPEC-242","descriptions":[{"lang":"en","value":"CAPEC-242 Code Injection"}]}],"affected":[{"vendor":"Canonical","product":"ubuntu-pro-client (ubuntu-advantage-tools)","platforms":["Linux"],"collectionURL":"https://github.com/canonical/","packageName":"ubuntu-pro-client","repo":"https://github.com/canonical/ubuntu-pro-client","versions":[{"status":"affected","version":"0","lessThan":"37.3","versionType":"python"}],"defaultStatus":"unaffected"},{"vendor":"Canonical","product":"Ubuntu 26.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/resolute","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"37.2ubuntu0.1","versionType":"dpkg"}],"defaultStatus":"affected"},{"vendor":"Canonical","product":"Ubuntu 24.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/noble","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"37.2ubuntu~24.04.1","versionType":"dpkg"}],"defaultStatus":"affected"},{"vendor":"Canonical","product":"Ubuntu 22.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/jammy","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"37.2ubuntu~22.04.1","versionType":"dpkg"}],"defaultStatus":"affected"},{"vendor":"Canonical","product":"Ubuntu 20.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/focal","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"37.1ubuntu0~20.04.1","versionType":"dpkg"}],"defaultStatus":"affected"},{"vendor":"Canonical","product":"Ubuntu 18.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/bionic","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"37.1ubuntu0~18.04.1","versionType":"dpkg"}],"defaultStatus":"affected"},{"vendor":"Canonical","product":"Ubuntu 16.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/xenial","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"37.1ubuntu0~16.04.1","versionType":"dpkg"}],"defaultStatus":"affected"},{"vendor":"Canonical","product":"Ubuntu 14.04 LTS","platforms":["Linux"],"collectionURL":"https://launchpad.net/ubuntu/trusty","packageName":"ubuntu-advantage-tools","repo":"https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools","versions":[{"status":"unaffected","version":"19.7ubuntu0.1","versionType":"dpkg"}],"defaultStatus":"affected"}],"descriptions":[{"lang":"en","value":"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.","supportingMedia":[{"type":"text/html","base64":false,"value":"An input validation and injection vulnerability exists in Canonical<br>ubuntu-pro-client (formerly ubuntu-advantage-tools). The client constructs<br>APT source files (such as /etc/apt/sources.list.d/ubuntu-.list or their<br>DEB822 equivalents) using data received directly from the contract server<br>response via the directives.suites[] and directives.aptURL fields. Because<br>the client utilizes Python's str.format() to write these files without<br>performing escaping, validation, or newline character filtering, a malicious<br>or tampered contract response containing embedded newline (\\n) characters can<br>successfully inject arbitrary, attacker-controlled deb configuration lines into<br>root-owned APT sources.<br>When combined with the unvalidated additionalPackages[] field—which is passed<br>positionally into a root-executed apt-get install command—an attacker capable of<br>spoofing or manipulating the contract response (e.g., via a compromised internal<br>infrastructure, an intercepted connection utilizing a trusted CA, or local logical<br>bugs) can force the client to fetch and install malicious packages. This ultimately<br>leads to arbitrary code execution with root privileges on the affected system. This<br>component is preinstalled on supported Ubuntu Server releases and auto-attaches by<br>default on cloud provider Ubuntu Pro images."}]}],"references":[{"url":"https://ubuntu.com/security/CVE-2026-11386","tags":["vdb-entry"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"CRITICAL","baseScore":9,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"}}],"credits":[{"lang":"en","value":"Frederick Jerusha","type":"finder"}],"source":{"discovery":"EXTERNAL"},"providerMetadata":{"orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","shortName":"canonical","dateUpdated":"2026-07-16T12:16:02.508Z"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-16T13:30:45.443694Z","id":"CVE-2026-11386","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-07-16T13:31:16.910Z"}}]}}