Skip to main content
Vulnerability Database/CVE-2026-104875

CVE-2026-104875: Ente Cloud Auth Bypass Vulnerability

CVE-2026-104875 is an authentication bypass flaw in Ente end-to-end encrypted cloud services that lets emergency contacts skip security wait periods. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104875 Overview

Ente is an end-to-end encrypted cloud storage and security tools platform. CVE-2026-104875 is an authorization bypass in the Ente server's emergency contact recovery workflow. The POST /emergency-contacts/approve-recovery endpoint trusted a client-supplied userID and updated recovery sessions using only a client-supplied session UUID. An accepted emergency contact could transition a victim's recovery session from WAITING to READY, clear the wait_till field, and continue account recovery before the owner-configured waiting period expired. The same insufficiently scoped update pattern also affected the reject and stop recovery transitions. The issue is fixed in server image 2026.07.09.

Critical Impact

An accepted emergency contact can bypass the owner-defined waiting period and proceed with account recovery, gaining access to recovery material for an end-to-end encrypted account.

Affected Products

  • Ente server image versions prior to 2026.07.09
  • Ente museum server (emergency controller and repository)
  • Self-hosted Ente deployments running affected server images

Discovery Timeline

  • 2026-10-13 - CVE CVE-2026-104875 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-104875

Vulnerability Analysis

The flaw is an authorization bypass classified as [CWE-639] Authorization Through User-Controlled Key. The affected endpoint accepted both the acting userID and the target recovery session UUID from the request body without cross-checking them against server-held session state. Approve, reject, and stop transitions updated rows based on the session ID alone, so a party who knew the UUID could mutate a session they were not the owner of.

For the approve path, exploitation requires that the victim previously added and accepted the attacker as an emergency contact. The bug does not grant recovery rights over arbitrary accounts, but it collapses the owner-configured notice window that is the control the user relies on to detect and cancel unauthorized recovery.

For the reject and stop paths, any user who learned another session UUID could cancel a recovery session they were not a party to, producing a denial-of-service against legitimate recovery flows.

Root Cause

The controller trusted request-supplied identifiers. The pre-patch logic only validated req.UserID != userID and then called UpdateRecoveryStatusForID(ctx, req.ID, ...), which updated the row keyed only on session ID. The server never verified that the session row's user_id and emergency_contact_id matched the authenticated principal and the claimed counterparty.

Attack Vector

An authenticated attacker who is an accepted emergency contact of a victim issues a crafted POST /emergency-contacts/approve-recovery request containing the victim's userID, the attacker's own emergencyContactID, and the known recovery session UUID. The server transitions the session to READY, zeroes wait_till, and the attacker proceeds to retrieve recovery material without waiting for the configured notice period.

go
// Patch: server/pkg/controller/emergency/recovery_contact.go
// Validates that the session row matches both parties and that
// the authenticated principal is the account owner.

	if req.EmergencyContactID == req.UserID {
		return stacktrace.Propagate(ente.NewBadRequestWithMessage("contact and user can not be same"), "")
	}
	session, err := c.Repo.GetRecoverRowByID(ctx, req.ID)
	if err != nil {
		return stacktrace.Propagate(err, "")
	}
	if session.UserID != req.UserID || session.EmergencyContactID != req.EmergencyContactID {
		return stacktrace.Propagate(ente.ErrPermissionDenied, "recovery session does not match request")
	}
	if session.UserID != userID {
		return stacktrace.Propagate(ente.ErrPermissionDenied, "only account owner can approve recovery")
	}
	hasUpdate, err := c.Repo.ApproveRecoveryForSession(ctx, session.ID, session.UserID, session.EmergencyContactID)

Source: GitHub Commit 1fc4956

The repository layer was also hardened so that the UPDATE statement is scoped by user_id and emergency_contact_id in addition to the session ID, preventing silent cross-session writes. See GitHub Commit b3fa9f5 for the related UpdateRecoveryStatusForSession change applied to the stop and complete paths.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-104875

Indicators of Compromise

  • Recovery session rows whose status transitioned from WAITING to READY with wait_till set to a very small or zeroed value before the owner-configured notice period elapsed.
  • POST /emergency-contacts/approve-recovery requests in which the request body userID differs from the authenticated principal's user ID.
  • Server warnings matching no row updated while rejecting recovery or no row updated while approving recovery from the emergency controller.
  • Recovery notifications fired for emergency contact pairs that the account owner did not expect to approve.

Detection Strategies

  • Audit the emergency_recovery table for sessions that reached READY or RECOVERED state with elapsed time between creation and transition that is shorter than the configured waiting period.
  • Correlate application logs for /emergency-contacts/approve-recovery, /reject-recovery, and /stop-recovery with the authenticated session identity to flag mismatches between the authenticated user and the request-body userID.
  • Alert on recovery notification events delivered to accounts whose owner did not initiate approval through a trusted client.

Monitoring Recommendations

  • Enable verbose request logging on the Ente museum server for the emergency controller and ship logs to a centralized store for retention and search.
  • Monitor for abnormal frequencies of emergency recovery API calls per user and per source IP.
  • Track database writes to emergency_recovery.status and raise an alert when wait_till is reduced outside expected administrative flows.

How to Mitigate CVE-2026-104875

Immediate Actions Required

  • Upgrade the Ente server image to 2026.07.09 or later on all self-hosted and managed deployments.
  • Review the emergency_recovery table for any sessions that transitioned to READY or RECOVERED prematurely and notify affected account owners.
  • Instruct users to review and prune their accepted emergency contacts, removing any entries they no longer trust.

Patch Information

The fix ships in Ente server image 2026.07.09. The controller now loads the recovery session via GetRecoverRowByID, verifies that session.UserID and session.EmergencyContactID match the request, and confirms that the authenticated principal owns the account. The repository layer adds ApproveRecoveryForSession and UpdateRecoveryStatusForSession, which scope the UPDATE to user_id and emergency_contact_id in addition to the session UUID. See GitHub Security Advisory GHSA-2hxj-953x-c2vw, Pull Request #11311, and Pull Request #11342.

Workarounds

  • No supported configuration-only workaround exists; upgrading to server image 2026.07.09 is required.
  • As an interim measure, operators can restrict access to the /emergency-contacts/* routes at the reverse proxy for users who do not actively rely on the feature.
  • Account owners can remove accepted emergency contacts to eliminate the precondition required for the approve-recovery bypass.
bash
# Pull and deploy the fixed Ente server image
docker pull ghcr.io/ente-io/server:2026.07.09

# Example docker-compose update
# services:
#   museum:
#     image: ghcr.io/ente-io/server:2026.07.09
docker compose pull museum
docker compose up -d museum

# Verify running image digest
docker inspect --format '{{.Config.Image}}' $(docker compose ps -q museum)

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.