Skip to content
Heist/ feed
Back to feed
Unrated

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-0985

Insufficient capability checks could allow users with the moodle/site:uploadusers capability to delete users, without having the necessary moodle/user:delete capability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-0985
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:38 UTC · Revision 1

Source evidence

CVE-2022-0985

core-osv · Original source

Published 29 Apr 2022, 15:48 UTC

Insufficient capability checks could allow users with the moodle/site:uploadusers capability to delete users, without having the necessary moodle/user:delete capability.

osv:CVE-2022-0985
Complete source record
{
  "id": "3789cfe4a83435ae52d5b35be621b3cc9a7fc98ecef70bc42b1439ebaec07b97",
  "url": "https://osv.dev/vulnerability/CVE-2022-0985",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-0985",
    "summary": "Insufficient capability checks could allow users with the moodle/site:uploadusers capability to delete users, without having the necessary moodle/user:delete capability.",
    "evidence": "osv:CVE-2022-0985",
    "products": [],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-0985",
      "aliases": [
        "BIT-moodle-2022-0985",
        "CVE-2022-0985",
        "GHSA-6q9g-3vfq-q2qj"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moodle/moodle",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4e2c4bfaedc4057c3b22976757f9a2c845ba3124"
                },
                {
                  "introduced": "ec58cefefb2722f61f77c9a2b6a12d40a8c078a0"
                },
                {
                  "fixed": "4495c3351ccecb954a183e05b7220572fc591ce9"
                },
                {
                  "introduced": "94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"
                },
                {
                  "fixed": "6d7dbaa6859da1e1c2d0f5ef64fe9d314dc54f3f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.9.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.10.0"
                      },
                      {
                        "fixed": "3.10.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "fixed": "3.11.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.11.5",
            "v3.10.9",
            "v3.9.12",
            "v3.11.4",
            "v3.10.8",
            "v3.9.11",
            "v3.11.3",
            "v3.9.10",
            "v3.10.7",
            "v3.11.1",
            "v3.11.2",
            "v3.10.6",
            "v3.9.9",
            "v3.10.5",
            "v3.9.8",
            "v3.11.0",
            "v3.10.4",
            "v3.9.7",
            "v3.10.3",
            "v3.9.6",
            "v3.10.2",
            "v3.9.5",
            "v3.10.1",
            "v3.9.4",
            "v3.9.3",
            "v3.10.0",
            "v3.9.2",
            "v3.9.1",
            "v3.9.0-rc2",
            "v3.9.0",
            "v3.9.0-rc3",
            "v3.9.0-rc1",
            "v3.9.0-beta",
            "v3.8.0",
            "v3.8.0-rc1",
            "v3.8.0-beta",
            "v3.7.0",
            "v3.7.0-rc2",
            "v3.7.0-rc1",
            "v3.7.0-beta",
            "v3.6.0",
            "v3.6.0-rc2",
            "v3.6.0-rc3",
            "v3.6.0-rc1",
            "v3.6.0-beta",
            "v3.5.0",
            "v3.5.0-rc1",
            "v3.5.0-beta",
            "v3.4.0",
            "v3.4.0-rc2",
            "v3.4.0-rc3",
            "v3.4.0-rc1",
            "v3.4.0-beta",
            "v3.3.0",
            "v3.3.0-rc3",
            "v3.3.0-rc2",
            "v3.3.0-rc1",
            "v3.3.0-beta",
            "v3.2.0-rc2",
            "v3.2.0",
            "v3.2.0-rc4",
            "v3.2.0-beta",
            "v3.2.0-rc5",
            "v3.2.0-rc3",
            "v3.2.0-rc1",
            "v3.1.0-beta",
            "v3.1.0",
            "v3.1.0-rc2",
            "v3.1.0-rc1",
            "v3.0.0-rc3",
            "v3.0.0",
            "v3.0.0-rc4",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-beta",
            "v2.9.0",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.9.0-beta",
            "v2.8.0",
            "v2.8.0-rc2",
            "v2.8.0-rc1",
            "v2.8.0-beta",
            "v2.7.0",
            "v2.7.0-rc2",
            "v2.7.0-rc1",
            "v2.7.0-beta",
            "v2.6.0",
            "v2.6.0-rc1",
            "v2.6.0-beta",
            "v2.5.0",
            "v2.5.0-rc1",
            "v2.5.0-beta",
            "v2.4.0-beta",
            "v2.4.0-rc1",
            "v2.4.0",
            "v2.3.0",
            "v2.3.0-rc1",
            "v2.3.0-beta",
            "v2.2.0",
            "v2.2.0-rc1",
            "v2.2.0-beta",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.9",
            "v1.0.8",
            "v1.0.7",
            "v1.0.6",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0985.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.176809040Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0985.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-0985",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2064117"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-287"
        ],
        "cna_assigner": "redhat",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "moodle 3.11.6, moodle 3.10.10, moodle 3.9.13"
                  },
                  {
                    "last_affected": "moodle 3.11.6, moodle 3.10.10, moodle 3.9.13"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0985.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-0985",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 505770,
  "published_at": "2022-04-29T15:48:30+00:00"
}