CVE-2021-43835: Sulu/sulu Privilege Escalation Vulnerability
HIGHCVE-2021-43835 is a HIGH (CVSS 7.2) privilege escalation vulnerability (CWE-269: Improper Privilege Management) affecting Sulu/sulu libraries in the Packagist ecosystem. The issue involves privilege escalation in the sulu admin panel. Remediation is available by upgrading affected packages to version 2.2.18, 2.3.8, 2.4.0.
CVE-2021-43835 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-43835
To remediate this vulnerability, upgrade all affected Sulu/sulu 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 sulu/sulu to 2.2.18
Upgrade sulu/sulu to 2.3.8
Upgrade sulu/sulu to 2.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sulu/sulu
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-43835, inspect your project dependencies for Sulu/sulu:
inspect dependencies for sulu/sulu
Analyze the terminal output to locate any version of Sulu/sulu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.18), 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 Sulu/sulu, 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-2021-43835 Affected Sulu/sulu Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sulu/sulu
|
Packagist |
≥ 2.0.0
< 2.2.18
|
2.2.18
|
|
sulu/sulu
|
Packagist |
≥ 2.3.0
< 2.3.8
|
2.3.8
|
|
sulu/sulu
|
Packagist |
≥ 2.4.0-RC1
< 2.4.0
All 1 versions
2.4.0-RC1
|
2.4.0
|
References
Frequently Asked Questions
What is CVE-2021-43835?
Which Sulu/sulu versions are affected?
What version fixes CVE-2021-43835?
Is sulu/sulu affected?
What is the CVSS score of CVE-2021-43835?
What CWE is associated with CVE-2021-43835?
How can I check Packagist dependencies for CVE-2021-43835?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-84px-q68r-2fc9",
"modified" : "2021-12-15T22:27:38Z",
"published" : "2021-12-15T22:55:16Z",
"aliases" : [ "CVE-2021-43835" ],
"summary" : "Privilege escalation in the Sulu Admin panel",
"details" : "### Impact\n\nImpacted are only users which already have access to the admin UI. Over the API it was possible for them to give themselves permissions to areas which they did not already had. This issue was introduced in 2.0.0-RC1 with the new ProfileController putAction.\n\n### Patches\n\nThe versions have been patched in 2.2.18, 2.3.8 and 2.4.0.\n\n### Workarounds\n\nPatching the ProfileController of affected sulu versions yourself by overwriting it.\n\n### References\n\n_Are there any links users can visit to find out more?_\n\nCurrently not.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [sulu/sulu repo](https://github.com/sulu/sulu/issues)\n* Email us at [security@sulu.io](mailto:security@sulu.io)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.2.18"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.2.17"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.3.7"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0-RC1"
}, {
"fixed" : "2.4.0"
} ]
} ],
"versions" : [ "2.4.0-RC1" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/security/advisories/GHSA-84px-q68r-2fc9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-43835"
}, {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/commit/30bf8b5a4f83b6f2171a696011757d095edaa28a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sulu/sulu"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-12-15T22:27:38Z",
"nvd_published_at" : "2021-12-15T20:15:00Z"
}
}