# CVE-2021-22877: A missing user check in Nextcloud prior to 20.0.6 inadvertently populates a user's own credentials for other users external storage configu…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/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.71%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-03T17:39:15.000Z
- Modified: 2026-06-17T03:37:55.910Z
- Weaknesses: CWE-284, CWE-862
- Assigned by: hackerone

## Description

A missing user check in Nextcloud prior to 20.0.6 inadvertently populates a user's own credentials for other users external storage configuration when not already configured yet.

(As written by CVE List.)

## Affected

- Nextcloud Server: Fixed in 20.0.6
- nextcloud nextcloud_server: before 20.0.6
- fedoraproject fedora: 34

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://github.com/nextcloud/server/issues/24600> (exploit, issue-tracking, patch, third-party-advisory)
- <https://hackerone.com/reports/1061591> (issue-tracking, third-party-advisory)
- <https://nextcloud.com/security/advisory/?id=NC-SA-2021-004> (broken-link, vendor-advisory)
- <https://github.com/nextcloud/server/pull/25224> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6BO6P6MP2MOWA6PZRXX32PLWPXN5O4S/> (vendor-advisory)

## Sources

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

---

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