A critical improper authentication defect tracked as CVE-2026-137018 (GHSA-322v-xwfj-63cm) affects enclave-os-mini, the confidential-computing runtime from Privasys.
Builds compiled without the wasm cargo feature never verified JSON Web Token signatures. A remote attacker can therefore mint a self-signed bearer and impersonate any subject. The flaw is rated critical under CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
The root cause sits in verify_oidc_token, which gated JWKS signature validation on the wasm feature. Under #[cfg(not(feature = "wasm"))], the routine split the token, base64-decoded the payload and parsed the claims directly.
Critical enclave-os-mini JWT Flaw
The iss, aud and exp checks that followed read from this unverified payload, so they constrained only what the presenter chose to write. The maintainers’ GitHub security advisory classifies the defect under CWE-287 and CWE-347.
Exploitation needs only network reach to a vault’s RA-TLS port and a token the attacker crafts. No identity provider credential is required. No client attestation is required either, because since commit 0b32ec9 the server demands client evidence only from a leaf claiming a fleet identity.
An ordinary client can therefore connect and present a forged bearer. This makes the attack pre-authentication, low complexity and scriptable at scale. For background on how identity-layer weaknesses are chained in the wild, see the identity attack coverage on The Cyber Def.
Once the forged token is accepted, the attacker controls the sub and roles claims. The ListKeys operation authorises on oidc_claims.sub alone and returns that subject’s handle index.
A forged token therefore enumerates a victim’s keys. ExportKey, CreateKey, UpdatePolicy and IssueApprovalToken all authorise from the same attacker-supplied claims. For keys created as exportable, which data-owner keys are by design, the result is direct extraction of raw key material.
The step-up control offers no protection. The OidcStepUp condition on ExportKey reads amr, iat, vault_op and nonce from the same unverified claims. A forged token satisfies it by asserting amr: ["webauthn"], so the supposed second factor collapses into a single attacker-controlled field.
Teams tracking token-forgery patterns can compare this with other authentication bypass reporting on the site. Splitting secrets across vaults does not raise the bar. Shamir secret sharing increases the request count but not the difficulty.
Every vault in a constellation runs the same build, the directory service lists them, and the same forged token works against each node. An attacker can therefore harvest every share and reconstruct the secret. Sealing the data to an enclave measurement does not help, because the attacker is authorised at the application layer.
Reachability is broader than the feature flag suggests. The wasm feature is not enabled by default, and two shipped configurations build without it. These are the base flavour published from v* tags and the enclave-vaults composition, which pins the repository with default-features = false, features = ["sgx"].
The vault refuses to boot without OIDC configured, so every vault running a release before vault-v0.33.0 accepted forged bearers. The wasm-v* builds are not affected, since they already verified signatures.
The design rationale also deserves scrutiny. RA-TLS was cited as justification for skipping verification, but remote attestation over TLS authenticates the channel and the enclave identity. It does not prove that the party presenting a token is its subject.
The encauth path in the same file already refused to operate in this condition, returning “no trusted idp key source (egress disabled)”. That shows the maintainers recognised the trust boundary elsewhere in the codebase. MITRE defines this class as a failure to prove a claimed identity, and it lists CAPEC-633 Token Impersonation among related attack patterns (CWE-287).
The fix landed in commit da9cf29 and ships in enclave-os-mini 0.25.0 and enclave-vaults 0.33.0. Verification is now gated on the egress feature, which carries the JWKS fetcher. enclave-os-wasm‘s jwks_fetcher re-exports enclave_os_egress::jwks, and both the vault and wasm flavours enable egress.
A build without a trusted key source now refuses every bearer, which is a fail-closed design. The two base64 helpers that existed only to decode the unverified payload were removed. JWKS retrieval uses the built-in Mozilla root store, so no configuration change is needed.
| Flavour | Tags | Affected | Fixed in |
|---|---|---|---|
| base (enclave-os-mini) | v* | before v0.25.0 | v0.25.0 |
| wasm | wasm-v* | not affected | not applicable |
| vault (enclave-vaults) | vault-v* | before vault-v0.33.0 | vault-v0.33.0 (mini v0.25.0) |
Patching does not undo earlier access, so responders should treat every pre-patch vault as potentially breached. Upgrade every vault and every deployment built without the wasm feature that accepts OIDC bearers. Review vault audit logs for ExportKey and ListKeys calls you cannot attribute to a known principal.
Rotate any key material you cannot rule out as exposed. A new constellation is the cleanest cut, because its MRENCLAVE differs and sealed state does not carry over. Additional guidance on rotation and logging is available in the site’s incident response playbooks.
The maintainers received the report privately on 2026-09-17 as part of a 20-finding coordinated disclosure. The advisory credits B1ueD0g, rechard-edward and muhammad-usama-sardar as finders, and it was published on September 19.
CWE-347, Improper Verification of Cryptographic Signature, is the second mapped weakness, and it describes exactly this failure to validate a signature before trusting claims (CWE-347). Defenders should also verify that no other build target compiles out signature validation behind a feature flag.
FAQ
What is CVE-2026-137018? It is a critical CWE-287/CWE-347 flaw in which enclave-os-mini builds without the wasm feature accept unsigned, forged OIDC JWTs.
Which versions are affected? enclave-os-mini before 0.25.0 and enclave-vaults before 0.33.0 are affected, and wasm-v* builds are not.
Can attackers steal keys? Yes, a forged token can authorise ExportKey for exportable keys, and a forged amr: ["webauthn"] claim defeats the step-up check.
How do I fix it? Upgrade to enclave-os-mini 0.25.0 and enclave-vaults 0.33.0, audit ExportKey and ListKeys logs, and rotate any key you cannot prove was not exposed.