Mar 4, 2026·5 min read·68 visits
Restricted users can bypass authorization checks in LXD's certificate API to list all trusted certificate fingerprints. This allows reconnaissance of the cluster's trust relationships.
A Missing Authorization vulnerability in Canonical LXD allows authenticated, restricted users to enumerate the fingerprints of all trusted certificates via the API. The flaw exists in the non-recursive handling of the GET /1.0/certificates endpoint, bypassing per-object visibility controls.
Canonical LXD, a system container manager, exposes a REST API for management and orchestration. The API includes an endpoint, /1.0/certificates, designed to list the certificates currently trusted by the LXD server (e.g., for client authentication or cluster communication). Access to this endpoint is guarded by authentication and an authorization model that supports restricted tokens with granular permissions.
In LXD version 6.6, a vulnerability exists in the logic handling this endpoint. While the system correctly enforces granular visibility permissions when a client requests a recursive list (detailed object data), it fails to apply these same checks when serving a standard, non-recursive list (URLs and fingerprints only). Consequently, an attacker possessing a valid but restricted authentication token can enumerate the entire set of trusted certificates, identifying entities that should be invisible to them based on their entitlement scope.
The root cause lies in the control flow implementation within lxd/certificates.go inside the certificatesGet handler. The handler retrieves the complete list of certificates (baseCerts) from the cluster database and is intended to filter this list based on the requestor's permissions. The filtering logic utilizes a helper function, userHasPermission, to verify if the caller has EntitlementCanView for a specific certificate.
The logic diverged based on the recursion query parameter:
?recursion=1): The code iterated through baseCerts, explicitly called userHasPermission for each item, and only included authorized certificates in the response.baseCerts slice. Crucially, this block lacked the userHasPermission check entirely. It unconditionally constructed the resource URL (containing the SHA-256 fingerprint) for every certificate in the database and returned the list.This inconsistency allowed the non-recursive path to act as a side-channel for enumeration, leaking the existence and fingerprints of certificates that were otherwise protected by the authorization layer.
The vulnerability was addressed by consolidating the response generation logic. The patch removes the divergent path for non-recursive requests and forces all iterations to pass through the authorization check.
Vulnerable Logic (Conceptual):
// Logic prior to fix
if recursion {
for _, cert := range baseCerts {
if !userHasPermission(cert) { continue }
// Add full details
}
} else {
// VULNERABILITY: No permission check here
for _, cert := range baseCerts {
urls = append(urls, "/1.0/certificates/" + cert.Fingerprint)
}
}Patched Logic:
The fix ensures that userHasPermission guards the addition of any data to the response, regardless of the recursion mode. The URL construction is moved inside the authorized block.
// Fixed logic in d936c90d47cf0be1e9757df897f769e9887ebde1
for _, baseCert := range baseCerts {
// Unified authorization check
if !userHasPermission(baseCert.Fingerprint) {
continue
}
if recursion {
// Add full details for recursive response
// ...
} else {
// Only append URL if authorized
url := api.NewURL().Path(version.APIVersion, "certificates", baseCert.Fingerprint)
certURLs = append(certURLs, url.String())
}
}This change guarantees that if a user cannot view a certificate object, they cannot see its URL or fingerprint in the list, aligning the behavior of both API modes.
Exploitation of CVE-2026-3351 requires a valid authentication token. This could be a restricted certificate or a bearer token issued with limited scopes. The attacker does not need high privileges; a token with zero explicit permissions is sufficient to trigger the leak.
Attack Scenario:
/1.0/certificates endpoint without the recursion parameter.# Example using the LXD command line tool alias
export LXD_AUTH_BEARER_TOKEN="<restricted_token>"
lxc query /1.0/certificatesResult:
The server returns a JSON array containing the URLs of all trusted certificates, revealing their SHA-256 fingerprints:
[
"/1.0/certificates/75329c73266fc8f36581ae5508ef4347e4eaa696eed09089c4dc7be68198bf7a",
"/1.0/certificates/a1b2c3d4..."
]This output confirms the presence of these certificates in the trust store. If the fix were applied, an empty list [] (or only the certificates the user explicitly owns) would be returned.
The impact of this vulnerability is classified as Low (CVSS 2.1) because it involves information leakage of non-secret identifiers rather than direct compromise of confidentiality or integrity.
This vulnerability is primarily useful for reconnaissance, helping an attacker understand the cluster's topology or identity management structure before attempting further lateral movement.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:P| Product | Affected Versions | Fixed Version |
|---|---|---|
LXD Canonical | = 6.6 | See Vendor Advisory |
| Attribute | Detail |
|---|---|
| CVE ID | CVE-2026-3351 |
| CVSS v4.0 | 2.1 (Low) |
| CWE | CWE-862 (Missing Authorization) |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:L |
| Attack Complexity | Low |
| Privileges Required | Low (Authenticated) |
CVE-2026-73295 is a DOM-based Cross-Site Scripting (XSS) vulnerability affecting Material for MkDocs versions 7.2.0 through 9.7.6. When the optional 'search.suggest' feature is enabled, the client-side 'mountSearchSuggest' function processes user-controlled inputs from the URL 'q' parameter and writes them directly to the DOM using an unsafe innerHTML sink without sanitization.
CVE-2026-71869 is a critical-severity code injection vulnerability in the Orval code generator (packages: orval, @orval/core, @orval/zod) prior to version 8.21.0. This flaw allows remote attackers to execute arbitrary JavaScript code at import-time by embedding malicious payloads into the default values of OpenAPI or Swagger specifications. This report details the root cause, exploitation mechanism, and patch remediation.
CVE-2026-61625 is a path traversal vulnerability (CWE-22) within the `vmrestore` utility of VictoriaMetrics. When restoring database shards from a compromised or malicious backup source, the application fails to validate the paths of backup parts before creating and writing files. By injecting objects with directory traversal sequences (such as `../`) into the remote backup storage, an attacker can write arbitrary files to out-of-bounds locations on the system executing the restore operation. Depending on the process privileges, this can result in host compromise via remote code execution.
A medium-severity cache key canonicalization collision vulnerability exists in the ckan-mcp-server prior to version 0.4.112. Unescaped delimiters in key-value parameters and server URLs allow structurally distinct requests to map to the same cryptographic hash, facilitating cache poisoning and unauthorized data exposure.
A stored and reflected Cross-Site Scripting (XSS) vulnerability was identified in the SiYuan kernel before version v3.7.3. The flaw occurs due to a parser differential between the backend Go-based HTML sanitizer and the browser-side XML rendering engine. Attackers can bypass the SVG sanitizer to execute arbitrary JavaScript within the context of the application's origin, leading to complete workspace compromise, data exfiltration, and full local kernel API manipulation.
An incomplete mitigation in the export-handling logic of SiYuan Notebook allowed authenticated users to bypass directory traversal protections. By crafting a request with percent-encoded path navigation sequences targeting the /export/temp/ route prefix, attackers can trigger an unvalidated short-circuit block that serving arbitrary files from the host server. This bypass renders previous path-traversal mitigations ineffective for the affected endpoint.