CVE Professor
/
All CVEs
CVE-2026-137019

CVE-2026-137019 — Privasys Enclave-os-mini-wasm — CWE-20 · CWE-269

CRITICAL CVSS 9.1 Shodan

Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini accepted a caller-chosen user_handle during FIDO2 registration and interpolated it through user_key into the application role-store namespace without validation. A handle naming the reserved manifest control key could overwrite the manifest with a valid JSON default-roles array, empty the user manifest, and cause get_user_roles_with_bootstrap to treat a later registration as the first user and grant the admin role. The issue affects applications that combine FIDO2 self-registration with app-auth roles and accept client-chosen handles, and its scope is limited to the affected application's role assignments. This issue is fixed in enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0.

Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini accepted a caller-chosen user_handle during FIDO2 registration and interpolated it through user_key into the application role-store namespace without validation. A handle naming the reserved manifest control key could overwrite the manifest with a valid JSON default-roles array, empty the user manifest, and cause get_user_roles_with_bootstrap to treat a later registration as the first user and grant the admin role. The issue affects applications that combine FIDO2 self-registration with app-auth roles and accept client-chosen handles, and its scope is limited to the affected application's role assignments. This issue is fixed in enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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 None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Root cause
Enclave OS Mini is a Rust‑based runtime that runs confidential applications inside Intel SGX enclaves.
During a FIDO2 self‑registration flow the client supplies a caller‑chosen user_handle.
The runtime takes that string, interpolates it into the user_key that is used to address the
application’s role‑store namespace, and stores the registration data there without any validation.

A special, reserved key is used internally by Enclave OS Mini to hold the application manifest
(manifest_control_key). If an attacker supplies a user_handle that matches this reserved key,
the runtime will write the registration payload under that key.
The payload contains a valid JSON default‑roles array (e.g., ["admin"]).
Consequences:

1. The manifest is overwritten with a minimal, empty user manifest.
2. The next registration is treated as the first user by get_user_roles_with_bootstrap.
3. That first user automatically receives the admin role.

Thus the flaw is a classic insecure input handling / lack of validation (CWE‑20) combined
with privilege escalation via role manipulation (CWE‑269).
The vulnerability is remote, low‑complexity, no authentication required, no user interaction,
and it only affects the role assignments of the affected application.


⚡ Attack Chain

NOTE: The exact URI and parameter names are not specified in the CVE description.
The following example uses a plausible endpoint (/fido2/register) and JSON payload
to illustrate the attack class. Replace with the real endpoint/parameters if they differ.

1. Discovery & Reconnaissance

StepTechniqueWhat to look for
Service fingerprintingHTTP header analysis, TLS SNI, or curl -I https://<target>Look for Server: Enclave-OS-Mini or custom headers like X-OS-Mini-Version: 0.52.1.
Version enumerationcurl -X GET https://<target>/health or /versionMany SGX runtimes expose a /version endpoint that returns JSON: {"version":"0.52.1"}.
Endpoint discoveryAutomated spidering or manual testing of common paths (/fido2, /auth, /register)Identify the FIDO2 registration endpoint.
Input validation checkSend malformed user_handle values (e.g., ../.., \0, very long strings)Observe if the service accepts them or rejects them.

2. Exploitation

Goal: Create a registration that writes to the reserved manifest key and injects an admin role.

StepActionExample
Craft payloadSet user_handle to the reserved key (e.g., "__manifest__").user_handle: "__manifest__"
Include admin roleIn the registration payload, include a default_roles array with "admin".default_roles: ["admin"]
Send requestPOST to the FIDO2 registration endpoint.curl -X POST https://<target>/fido2/register -H "Content-Type: application/json" -d '{"user_handle":"__manifest__","default_roles":["admin"]}'
Illustrative example (the real endpoint may differ):
curl -X POST https://example.com/fido2/register \
     -H "Content-Type: application/json" \
     -d '{
           "user_handle":"__manifest__",
           "default_roles":["admin"],
           "fido2_challenge":"<base64‑encoded‑challenge>"
         }'

What happens inside the runtime

1. The runtime receives the JSON, extracts user_handle.
2. It interpolates it into the role‑store key: role_store["__manifest__"].
3. Because no validation occurs, it writes the supplied payload to that key.
4. The manifest now contains a minimal JSON array ["admin"] and an empty user manifest.
5. The next real user registration is treated as the first user by get_user_roles_with_bootstrap.
6. That user receives the admin role automatically.

3. Post‑exploitation

StepCapabilityHow it is achieved
Privilege escalationGain admin rights in the enclave applicationThe attacker’s next registration becomes the first user → admin role
Read/write manifestAccess to confidential configuration or secrets stored in the manifestAdmin role allows reading/writing the manifest namespace
Execute privileged actionsDepending on the application, this could be reading enclave memory, triggering privileged APIs, or modifying role assignments for other usersAdmin role typically grants full control over the application’s role store
PersistenceCreate additional admin users or modify existing rolesUse the same registration flow to add more users with "admin" role

🌍 Real World Impact

ImpactCVSS VectorExplanation
ConfidentialityC:HThe attacker can read the manifest, which may contain secrets or configuration that grants access to confidential data.
IntegrityI:HThe attacker can overwrite the manifest, delete user manifests, or inject arbitrary roles, corrupting the application’s state.
AvailabilityA:NNo direct denial‑of‑service effect, but a corrupted manifest could render the application unusable.

Practical consequences

  • An attacker can gain admin privileges without any authentication or user interaction.
  • Once admin, the attacker can read, modify, or delete any data stored in the enclave’s role store or manifest.
  • In multi‑tenant deployments, a compromised tenant could affect other tenants if the role store is shared.
  • The vulnerability is scope‑limited to the affected application’s role assignments; it does not grant arbitrary code execution inside the enclave.

  • 🛡️ Remediation & Mitigation

    Exact affected versions

    ComponentAffected versionsFixed in
    enclave-os-mini-wasm< 0.53.00.53.0
    enclave-cluster< 0.8.00.8.0

    Upgrade recommendation
    Immediately upgrade to enclave-os-mini-wasm 0.53.0 or enclave-cluster 0.8.0.
    These releases add validation for user_handle and reject reserved key names.

    Workarounds

    1. Input validation – If you cannot upgrade immediately, patch the registration handler to reject any user_handle that matches the reserved manifest key ("__manifest__" or whatever the implementation uses).

    if user_handle == "__manifest__" {
           return Err("Invalid user_handle");
       }

    2. Disable FIDO2 registration – If the application does not require self‑registration, block the endpoint entirely (e.g., via firewall or WAF rule).
    3. Restrict access – Limit the registration endpoint to internal IP ranges or authenticated service accounts.
    4. WAF/ModSecurity rule – Block requests where the JSON body contains user_handle":"__manifest__".

    SecRule REQUEST_BODY "@contains \"user_handle\":\"__manifest__\"" \
           "id:1001,phase:2,deny,status:400,msg:'Reserved user_handle used'"

    Detection

    IndicatorLog patternHow to spot it
    Unexpected role‑store writerole_store_write: key="__manifest__", value=...Look for writes to the reserved key.
    Repeated FIDO2 registrationsfido2_register: user_handle="__manifest__"Multiple attempts to use the reserved key.
    Privilege escalationuser_role_change: user=..., new_role=adminA user gaining admin without prior admin rights.
    Manifest corruptionmanifest_updated: status=success, content=...Manifest content deviates from expected schema.

    IoCs

  • __manifest__ appearing in request bodies or logs.

  • JSON payloads containing default_roles:["admin"] during registration.

  • Unexpected admin role assignments in audit logs.




⚠️ Urgency

MetricValueInterpretation
CVSS v3.19.1Critical severity
Attack complexityLowRequires only a crafted HTTP request
Privileges requiredNoneNo prior authentication
User interactionNoneFully automated
ScopeUnchangedOnly the affected application

Patch priority: Immediate.
Given the critical CVSS score, zero‑interaction exploitation, and the ability to grant admin rights, the vulnerability poses a high risk to any environment running the affected Enclave OS Mini versions. Deploy the fixed releases or apply the workarounds as soon as possible.


[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Privasys enclave-os-mini-wasm"
CVSS Score
9.1 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Affected Products (2)
Privasys:enclave-os-mini-wasm Privasys:enclave-cluster
References & Advisories (3)
Related CVEs
9.2
CVE-2026-115991
Exposure of sensitive information in the content lock-check endpoints (PUT /api/content/canLock and GET /api/v
8.7
CVE-2026-116973
Improper authorization in the push-publishing bundle upload endpoints (POST /api/bundle, POST /api/bundle/sync
8.6
CVE-2026-144673
UVdesk core-framework through 1.1.7 contains a privilege escalation vulnerability that allows agents with the
8.6
CVE-2026-120093
Improper privilege management in the Velocity viewtools $cmsuser, $contents, $categories and $config in dotCMS
8.6
CVE-2026-132115
Missing authorization in legacy DWR role management methods (RoleAjax: addNewRole, updateRole, deleteRole, loc
8.2
CVE-2026-144623
Micronaut core HTTP client 4.10.24 through 4.10.37 and 5.0.1 through 5.3.0 contains a credential leak vulnerab
7.5
CVE-2026-145069
Zebra zebrad before 7.1.0 and zebra-state before 17.0.0 treat any queued child of the last checkpoint-verified