Missing authorization in immich-app Immich partner sync exposes Locked Folder metadata

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-108165?

CVE-2026-108165 is a vulnerability classified as Missing Authorization, affecting immich (affected versions: ≤ 3.3.1). This vulnerability is rated Medium, with a CVSS score of 5.3. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Immich through 3.3.1 contains a missing authorization vulnerability in the partner synchronization stream that allows authenticated partners to read Locked Folder asset metadata because sync queries do not exclude Locked visibility. Attackers with an active partner relationship can call POST /api/sync/stream with PartnerAssetsV2 and PartnerAssetExifsV1 types to obtain GPS coordinates, capture times, descriptions and camera details.

Affected products and scope

  • immich-app immich: semver versions from 0 through 3.3.1 inclusive are marked affected; the record's default status is unaffected.
  • The technical analysis confirms the flaw in 3.2.4 and 3.3.0-rc.0 as specific affected versions.
  • The record states that a patch is available but does not provide an exact fixed release. The status of versions after 3.3.1 is not established by the available evidence.

Technical details

The flaw is in Immich's partner synchronization stream, where queries in sync.repository.ts filter assets by owner or partner relationship but do not apply a condition excluding visibility = Locked. In contrast, the authorization path in access.repository.ts allows only Timeline and Hidden, excluding Locked assets. This inconsistency causes the synchronization path to return records that the direct access path is intended to deny.

An authenticated partner with an active sharing relationship can request the PartnerAssetsV2 and PartnerAssetExifsV1 types through POST /api/sync/stream. Both the initial backfill queries and later upsert queries are affected, covering asset and EXIF synchronization. The returned data may contain JSON Lines events with asset metadata and EXIF values from Locked Folder assets. The implementation details of a fix in a specific release have not been established.

Exploitability

  • Reachability: The flaw is reachable over the network through POST /api/sync/stream.
  • Authentication and preconditions: The attacker needs a normal authenticated account with an active partner relationship to the asset owner. An administrator role, PIN, elevated session, or API key is not required.
  • Complexity and interaction: The supplied assessment describes low attack complexity and no additional user interaction after the attacker has the required partner relationship.
  • Exploitation status: The record marks a public exploit as available. The supplied evidence does not establish exploitation in the wild, a named campaign, a named victim, or broad observed abuse.
  • Limits: The evidence confirms metadata and EXIF disclosure, but does not establish access to the original locked media bytes, write access, cross-user access without a partner relationship, or administrative actions.

Technical impact

  • Technical outcome: An authenticated partner can read metadata and EXIF for Locked assets through the synchronization stream, including GPS coordinates, capture time, description, city, state, country, and camera make and model when those fields are present.
  • Privilege and scope: An active partner relationship is required. The evidence does not show cross-user access without that relationship, write access, or administrative access.
  • Data scope: Both initial backfill and later update data are affected. An asset moved into Locked Folder after the partner relationship exists can still be included in the next synchronization.
  • Limit: The direct media access path continues to use an authorization check that excludes Locked according to the available evidence, so access to original media bytes is not established.

Business impact

  • Privacy exposure: A legitimate partner may learn the GPS location, capture time, description, and device information for assets that the owner deliberately placed in Locked Folder.
  • Unintended sharing scope: A partner relationship intended to expose only permitted content can disclose sensitive metadata through the synchronization mechanism.
  • Operational and compliance risk: Location and timing data could create additional privacy or safety risk for users or organizations relying on Locked Folder to protect sensitive images. This is a possible consequence, not evidence of a specific breach.
  • Impact limit: The current evidence is limited to metadata and EXIF from locked assets. It does not confirm original media download, data modification, or administrative takeover.

Remediation

  1. Upgrade to a vendor release containing the fix. The record states that a patch is available, but it does not identify an exact fixed version. Verify the vendor advisory or release notes for the distribution channel before treating a particular branch as fixed.
  2. If maintaining a fork, apply the same authorization rule to all four partner synchronization queries in sync.repository.ts: asset backfill and upsert, and EXIF backfill and upsert. The rule should allow only Timeline and Hidden and exclude Locked, with the predicate applied to the joined asset for EXIF queries.
  3. Add a regression test ensuring that partner synchronization never emits a PartnerAsset or PartnerAssetExif event for an asset with visibility = Locked, covering backfill, later upsert, and assets moved into Locked Folder after the partner relationship already exists.
  4. Until an exact fixed release is identified, treat versions from 0 through 3.3.1 as exposed and consider suspending partner sharing for sensitive Locked Folder assets. This is an operational risk reduction measure, not a vendor-confirmed mitigation.

Detection

  1. Inventory Immich servers and compare deployed versions with the affected range in affected_summary, including self-hosted container deployments.
  2. Review active partner relationships, especially relationships through which one user can view another user's assets.
  3. Where access logs, reverse-proxy telemetry, or request-body logging is available, look for requests to POST /api/sync/stream requesting PartnerAssetsV2 and PartnerAssetExifsV1.
  4. Inspect server-side or client-side synchronization data for asset and EXIF events corresponding to assets whose visibility is Locked. Pay particular attention to GPS, capture time, description, camera make, and camera model fields.
  5. Additional monitoring of partner synchronization is a precautionary control. The absence of matching logs or events does not prove that disclosure did not occur.
Sources (26)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.