Improper lock access control in Nextcloud Server can permanently lock files

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-77165?

CVE-2026-77165 is a vulnerability classified as Improper Access Control, affecting Server (affected versions: 32.0.0 – ≤ 34.0.0). This vulnerability is rated Medium, with a CVSS score of 6.5. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

File owners were unable to unlock TYPE_TOKEN locks placed by other users, leaving files permanently locked with no recovery path outside of the database.

Affected products and scope

  • Nextcloud Server: the CNA record marks releases from 32.0.0 through 34.0.0, inclusive under semver, as affected.
  • The default status in the record is unaffected outside the stated affected range.
  • The supplied record does not confirm exposure for other Nextcloud Server branches.

Technical details

Nextcloud Server has an access-control flaw in file locking: a file owner cannot unlock a TYPE_TOKEN lock placed by another user. The documented condition is that a low-privilege user can place this type of lock over the network, after which the owner cannot recover access through the normal lock operation. This behavior is consistent with CWE-284, improper access control. The supplied assessment indicates no user interaction is required and attack complexity is low. The specific endpoint, handler, authorization check, and database representation of the lock have not been disclosed.

Exploitability

The issue is reachable over the network and requires low privileges. The record indicates that no user interaction is required and that attack complexity is low. The record also marks a public exploit as available, while the additional enrichment classifies exploitation as poc and states that it is not automatable. The available evidence does not establish in-the-wild exploitation, a specific campaign, a victim, or a breach.

Technical impact

The technical outcome is loss of availability for locked files, potentially causing disruption at the individual-file or shared-file level. A low-privilege user can cause the condition over the network, but the supplied record does not indicate privilege escalation or impact crossing a security authority boundary. No confidentiality or integrity impact is identified in the available data. Realistic organizational consequences include interrupted collaboration, increased support workload, and dependence on database-level recovery. This is an availability impact, not evidence of data disclosure or modification.

Business impact

The flaw can interrupt access to affected files and disrupt collaboration or business processes that depend on them. Recovery may require database-level intervention, increasing administrative effort and operational risk. The recorded consequence is primarily file availability loss; the supplied record does not identify a confidentiality or integrity consequence. This issue should not be treated as evidence that data was read, modified, or deleted.

Remediation

  1. Apply the available Nextcloud patch for this issue. The record confirms that a patch is available but does not provide an exact fixed release, so an open-ended safe range must not be inferred.
  2. Inventory Nextcloud Server deployments and prioritize systems within the affected boundary. After updating, verify file-lock and unlock behavior in an appropriate test environment.
  3. For files that are already stuck, preserve a database backup and use a vendor-supported recovery procedure. The record states that no recovery path exists outside the database, but it does not provide safe manual database operations.
  4. Do not assume that an unlisted branch or release is safe solely because it is not included in the supplied affected record.

Detection

  1. Inventory systems running Nextcloud Server and compare deployed releases with the affected boundary in affected_summary.
  2. Review user reports for files that remain locked permanently, especially cases where the owner cannot remove a TYPE_TOKEN lock placed by another user.
  3. Inspect lock state in the database only through a vendor-supported procedure with an appropriate backup plan. The record does not provide a schema or safe query for this check.
  4. Treat repeated reports of uncleared file locks as investigation leads, not as a confirmed IOC.
  5. No specific log event, query pattern, or IOC is provided. The absence of such evidence does not prove that a deployment is safe.
Sources (23)
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.