CVE-2026-12249: Canonical ADSys Trust Store Poisoning via Plaintext HTTP Certificate Auto-Enrollment
An issue was discovered in Canonical ADSys upstream versions through v0.16.2. During Active Directory Certificate Services (AD CS) certificate auto-enrollment via the vendored Samba client script (internal/policies/certificate/python/vendorsamba/gp/gpcertautoenrollext.py), ADSys utilizes a plaintext HTTP connection (http://) instead of a secure HTTPS connection (https://) to request the CA certificate from the Active Directory Certificate Services server (GetCACert). An unauthenticated network attacker positioned between the managed Ubuntu host and the configured AD CS CA hostname can conduct a Man-in-the-Middle (MITM) attack. By intercepting the plaintext HTTP request, the attacker can supply an arbitrary, attacker-controlled Root CA certificate. Because the system automatically accepts this certificate and registers it into the local system trust store via update-ca-certificates, this results in system-wide trust store poisoning. Consequently, TLS clients utilizing the operating system trust store on the affected machine will accept rogue certificates for arbitrary domains, enabling persistent decryption and interception of subsequent TLS connections. This issue is resolved in version v0.16.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Canonical ADSysto a version that resolves this vulnerability.Fixed in v0.16.3 - Configuration
Update the GetCACert request used by gp_cert_auto_enroll_ext.py to use HTTPS (https://) rather than plaintext HTTP (http://) to prevent MITM injection of an attacker-controlled Root CA certificate.
ADSys vendored Samba certificate auto-enrollment script (internal/policies/certificate/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py) CA certificate request URL scheme for GetCACert = https:// (instead of http://)
Event History
Frequently Asked Questions
What is the severity of CVE-2026-12249?
CVE-2026-12249 has a critical severity rating of 9.
How do I fix CVE-2026-12249?
To fix CVE-2026-12249, update to the latest version of Canonical ADSys that addresses this vulnerability.
What type of vulnerability is CVE-2026-12249?
CVE-2026-12249 is a trust store poisoning vulnerability related to certificate auto-enrollment.
What software is affected by CVE-2026-12249?
CVE-2026-12249 affects Canonical ADSys versions through v0.16.2.
How can CVE-2026-12249 impact my system?
CVE-2026-12249 can lead to unauthorized certificate issuance and compromise the integrity of the trust store.