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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-10-25T21:35:11.000Z
- Modified: 2026-06-17T04:03:20.780Z
- Weaknesses: CWE-200
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 3.8.6,; >= 4.0.0, < 4.2.3
- nextcloud richdocuments: before 3.8.6; from 4.0.0 before 4.2.3

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-rjcc-4cgj-6v93> (third-party-advisory)
- <https://github.com/nextcloud/richdocuments/pull/1760> (patch, third-party-advisory)
- <https://hackerone.com/reports/1253460> (permissions-required, third-party-advisory)

## Sources

- CVE List: [CVE-2021-39223](https://www.cve.org/CVERecord?id=CVE-2021-39223), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-39223](https://nvd.nist.gov/vuln/detail/CVE-2021-39223), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-39223 · Whole record: https://cve.day/CVE-2021-39223.json · Rebuilt by cve.day 2026-11-25T22:58:05.189Z
