{"api_version":"1","generated_at":"2026-07-24T03:28:51+00:00","cve":"CVE-2021-22877","urls":{"html":"https://cve.report/CVE-2021-22877","api":"https://cve.report/api/cve/CVE-2021-22877.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-22877","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-22877"},"summary":{"title":"CVE-2021-22877","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.","state":"PUBLIC","assigner":"support@hackerone.com","published_at":"2021-03-03 18:15:00","updated_at":"2023-11-07 03:30:00"},"problem_types":["CWE-862"],"metrics":[],"references":[{"url":"https://nextcloud.com/security/advisory/?id=NC-SA-2021-004","name":"https://nextcloud.com/security/advisory/?id=NC-SA-2021-004","refsource":"MISC","tags":["Vendor Advisory"],"title":"advisory – Nextcloud","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://hackerone.com/reports/1061591","name":"https://hackerone.com/reports/1061591","refsource":"MISC","tags":["Issue Tracking","Third Party Advisory"],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/nextcloud/server/pull/25224","name":"https://github.com/nextcloud/server/pull/25224","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Update handling of user credentials by nickvergessen · Pull Request #25224 · nextcloud/server · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/nextcloud/server/issues/24600","name":"https://github.com/nextcloud/server/issues/24600","refsource":"MISC","tags":["Exploit","Patch","Third Party Advisory"],"title":"Wrong (malformed) external storage credentials saved in `oc_storages_credentials` · Issue #24600 · nextcloud/server · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6BO6P6MP2MOWA6PZRXX32PLWPXN5O4S/","name":"FEDORA-2021-eac0e52f88","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: nextcloud-20.0.10-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L6BO6P6MP2MOWA6PZRXX32PLWPXN5O4S/","name":"FEDORA-2021-eac0e52f88","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: nextcloud-20.0.10-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-22877","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22877","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"22877","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"22877","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nextcloud","cpe5":"nextcloud","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"22877","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nextcloud","cpe5":"nextcloud","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"22877","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nextcloud","cpe5":"nextcloud_server","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-22877","qid":"281694","title":"Fedora Security Update for nextcloud (FEDORA-2021-eac0e52f88)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-22877","ASSIGNER":"support@hackerone.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"Nextcloud Server","version":{"version_data":[{"version_value":"Fixed in 20.0.6"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Improper Access Control - Generic (CWE-284)"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://hackerone.com/reports/1061591","url":"https://hackerone.com/reports/1061591"},{"refsource":"MISC","name":"https://nextcloud.com/security/advisory/?id=NC-SA-2021-004","url":"https://nextcloud.com/security/advisory/?id=NC-SA-2021-004"},{"refsource":"MISC","name":"https://github.com/nextcloud/server/issues/24600","url":"https://github.com/nextcloud/server/issues/24600"},{"refsource":"MISC","name":"https://github.com/nextcloud/server/pull/25224","url":"https://github.com/nextcloud/server/pull/25224"},{"refsource":"FEDORA","name":"FEDORA-2021-eac0e52f88","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L6BO6P6MP2MOWA6PZRXX32PLWPXN5O4S/"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2021-03-03 18:15:00","lastModifiedDate":"2023-11-07 03:30:00","problem_types":["CWE-862"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.2,"impactScore":5.2},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:*","versionEndExcluding":"20.0.6","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"22877","Ordinal":"197610","Title":"CVE-2021-22877","CVE":"CVE-2021-22877","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"22877","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"22877","Ordinal":"2","NoteData":"2021-03-03","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"22877","Ordinal":"3","NoteData":"2021-07-09","Type":"Other","Title":"Modified"}]}}}