{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "34"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "20.0.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fd26cb18701139187a14b6d6ef72ebe660b183a8"
            }
          ],
          "repo": "https://github.com/nextcloud/server",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-22877",
  "modified": "2026-04-01T23:10:02.393108918Z",
  "published": "2021-03-03T18:15:14.707Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6BO6P6MP2MOWA6PZRXX32PLWPXN5O4S/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nextcloud.com/security/advisory/?id=NC-SA-2021-004"
    },
    {
      "type": "REPORT",
      "url": "https://hackerone.com/reports/1061591"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nextcloud/server/issues/24600"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nextcloud/server/pull/25224"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}