CVE-2024-21622: Craftcms/cms Craft CMS Privilege Escalation Vulnerability
MODERATECVE-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
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).
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.
Upgrade craftcms/cms to 4.5.11
Upgrade craftcms/cms to 3.9.6
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
CVE-2024-21622 Affected Craftcms/cms Versions
2 component(s)| 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?
Which Craftcms/cms versions are affected?
What version fixes CVE-2024-21622?
Is craftcms/cms affected?
What is the CVSS score of CVE-2024-21622?
What CWE is associated with CVE-2024-21622?
How can I check Packagist dependencies for CVE-2024-21622?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}