CVE-2024-21622: Craftcms/cms Craft CMS Privilege Escalation Vulnerability

MODERATE
Advisory Identifier: GHSA-j5g9-j7r4-6qvx
CVSS 5.4
CWE-269
Published
Advisory Summary

CVE-2024-21622 is a MODERATE (CVSS 5.4) craft cms privilege escalation vulnerability (CWE-269: Improper Privilege Management) affecting Craftcms/cms libraries in the Packagist ecosystem. The issue involves craft cms privilege escalation. Remediation is available by upgrading affected packages to version 4.5.11, 3.9.6.

CVE-2024-21622 at a Glance

CVE Identifier CVE-2024-21622
GHSA Identifier GHSA-j5g9-j7r4-6qvx
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-269: Improper Privilege Management
Affected Product Craftcms/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-21622

To remediate this vulnerability, upgrade all affected Craftcms/cms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

craftcms/cms fixed: 4.5.11
Upgrade craftcms/cms to 4.5.11
craftcms/cms fixed: 3.9.6
Upgrade craftcms/cms to 3.9.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for craftcms/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-21622, inspect your project dependencies for Craftcms/cms:

inspect dependencies for craftcms/cms

Analyze the terminal output to locate any version of Craftcms/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.11), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Craftcms/cms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact This is a potential moderate impact, low complexity privilege escalation vulnerability in Craft with certain user permissions setups. ### Patches This has been fixed in Craft 4.4.16 and Craft 3.9.6. Users should ensure they are running at least those versions. ### References https://github.com/craftcms/cms/pull/13932 https://github.com/craftcms/cms/pull/13931 https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#4511---2023-11-16 https://github.com/craftcms/cms/blob/v3/CHANGELOG.md#396---2023-11-16

CVE-2024-21622 Affected Craftcms/cms Versions

2 component(s)
Fixed Versions:
4.5.113.9.6
Product / Package Ecosystem Affected Versions Fixed Version
craftcms/cms
Packagist
≥ 4.0.0-RC1
< 4.5.11
4.5.11
craftcms/cms
Packagist
≥ 3.0.0
< 3.9.6
3.9.6

References

Frequently Asked Questions

What is CVE-2024-21622?
CVE-2024-21622 is a security vulnerability in Craftcms/cms involving Craft CMS Privilege Escalation under CWE-269: Improper Privilege Management.
Which Craftcms/cms versions are affected?
Affected versions include releases prior to 4.5.11, 3.9.6 across affected packages: craftcms/cms.
What version fixes CVE-2024-21622?
Upgrading to 4.5.11, 3.9.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is craftcms/cms affected?
Yes, craftcms/cms is affected in releases prior to 4.5.11, 3.9.6. Upgrade your dependency to 4.5.11, 3.9.6 or later.
What is the CVSS score of CVE-2024-21622?
CVE-2024-21622 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L.
What CWE is associated with CVE-2024-21622?
CVE-2024-21622 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Packagist dependencies for CVE-2024-21622?
Run the dependency tree command: 'inspect dependencies for craftcms/cms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j5g9-j7r4-6qvx",
  "modified" : "2024-01-03T21:50:26Z",
  "published" : "2024-01-03T21:50:26Z",
  "aliases" : [ "CVE-2024-21622" ],
  "summary" : "Craft CMS Privilege Escalation",
  "details" : "### Impact\n\nThis is a potential moderate impact, low complexity privilege escalation vulnerability in Craft with certain user permissions setups.\n\n### Patches\n\nThis has been fixed in Craft 4.4.16 and Craft 3.9.6. Users should ensure they are running at least those versions.\n\n### References\n\nhttps://github.com/craftcms/cms/pull/13932\nhttps://github.com/craftcms/cms/pull/13931\nhttps://github.com/craftcms/cms/blob/develop/CHANGELOG.md#4511---2023-11-16\nhttps://github.com/craftcms/cms/blob/v3/CHANGELOG.md#396---2023-11-16",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-RC1"
      }, {
        "fixed" : "4.5.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.5.10"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.9.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.9.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/security/advisories/GHSA-j5g9-j7r4-6qvx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21622"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/pull/13931"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/pull/13932"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/commit/76caf9af07d9964be0fd362772223be6a5f5b6aa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/commit/be81eb653d633833f2ab22510794abb6bb9c0843"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/craftcms/cms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#4511---2023-11-16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/blob/v3/CHANGELOG.md#396---2023-11-16"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T21:50:26Z",
    "nvd_published_at" : "2024-01-03T17:15:12Z"
  }
}