CVE-2026-55163: Lemur Privilege Escalation Non-admin Role Members Can Rewrite Vulnerability
MODERATECVE-2026-55163 is a MODERATE (CVSS 6.3) non-admin role members can rewrite vulnerability (CWE-863: Incorrect Authorization) affecting Lemur Privilege Escalation libraries in the PyPI ecosystem. The issue involves non-admin role members can rewrite role membership via put /api/1/roles/<id>. Remediation is available by upgrading affected packages to version 1.9.2.
CVE-2026-55163 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2026-55163
To remediate this vulnerability, upgrade all affected Lemur Privilege Escalation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install lemur>=1.9.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show lemur
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-55163, inspect your installed packages using pip:
pip show lemur
Analyze the terminal output to locate any version of Lemur Privilege Escalation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2), your application is affected.
Note: The pip show lemur command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Lemur Privilege Escalation, 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-2026-55163 Affected Lemur Privilege Escalation Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lemur
|
PyPI |
< 1.9.2
|
1.9.2
|
References
Frequently Asked Questions
What is CVE-2026-55163?
Which Lemur Privilege Escalation versions are affected?
What version fixes CVE-2026-55163?
Is lemur affected?
What is the CVSS score of CVE-2026-55163?
What CWE is associated with CVE-2026-55163?
How can I check PyPI dependencies for CVE-2026-55163?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x3vf-mgxj-7785",
"modified" : "2026-06-25T22:01:18Z",
"published" : "2026-06-25T22:01:18Z",
"aliases" : [ "CVE-2026-55163" ],
"summary" : "Lemur Privilege Escalation: Non-admin role members can rewrite role membership via PUT /api/1/roles/<id>",
"details" : "## Summary\n \nThe `PUT /api/1/roles/<id>` handler in `lemur/roles/views.py` gates only on `RoleMemberPermission(role_id).can()`, which is satisfied for any user who is already a member of the target role. The handler then passes `data[\"users\"]` and `data[\"name\"]` directly to `service.update()`, permitting any role member to rewrite that role's membership list and name. The companion `DELETE` handler on the same resource is correctly gated by `@admin_permission.require`; the asymmetry between PUT and DELETE on identical resources indicates an authorization oversight rather than a deliberate design choice.\n \n## Root Cause\n \n`lemur/roles/views.py:298`:\n \n```python\npermission = RoleMemberPermission(role_id)\nif permission.can():\n return service.update(\n role_id, data[\"name\"], data.get(\"description\"), data.get(\"users\")\n )\nreturn dict(message=\"You are not authorized to modify this role.\"), 403\n \n@admin_permission.require(http_exception=403)\ndef delete(self, role_id):\n ...\n```\n \n`lemur/auth/permissions.py:56`:\n \n```python\nclass RoleMemberPermission(Permission):\n def __init__(self, role_id):\n needs = [RoleNeed(\"admin\"), RoleMemberNeed(role_id)]\n super().__init__(*needs)\n```\n \n`flask_principal.Permission.allows()` is OR-semantic across needs, so `RoleMemberPermission(role_id).can()` returns `True` if the caller is either an admin **or** a member of `role_id`. The PUT handler treats membership-of-self as sufficient to mutate the role; DELETE does not.\n \n## Affected Endpoints\n \n| Method | Path | Source |\n|---|---|---|\n| PUT | /api/1/roles/`<id>` | lemur/roles/views.py:298 |\n \n## Impact\n \nA user who is a member of role X can:\n \n- **Add other users to role X**, granting them whatever certificate/authority access role X confers. In installs that delegate certificate or authority ownership to non-admin roles, this promotes arbitrary users to peer of every other role member.\n- **Remove other users from role X**, denying their access (availability / governance impact).\n- **Rename role X** to an arbitrary string.\nThe \"rename to admin\" path is blocked by the `unique=True` constraint on `Role.name` and by strict equality in `User.is_admin`, so direct self-promotion to admin via rename is not possible on default installs. The principal exploitation surface is membership rewriting and lateral promotion of colluders within roles the attacker already belongs to.\n \n## Remediation\n \nAdd `@admin_permission.require(http_exception=403)` to `Roles.put`, mirroring the existing decorator on `Roles.delete`:\n \n```python\n@admin_permission.require(http_exception=403)\ndef put(self, role_id, data=None):\n ...\n```\n \nIf selective delegation is intended (role owners managing their own roles), that capability should be modeled with a dedicated permission class whose Needs reflect role *ownership* rather than membership, and the `name` field should be excluded from the mutable schema on that delegated path.\n \n## Steps to Reproduce\n \n1. Set up Lemur with default configuration. Create an admin user `admin`, and two non-admin users `alice` and `bob`. Add `alice` to the built-in `operator` role; leave `bob` with no roles or with `read-only` only.\n2. Authenticate as `alice` and capture the JWT:\n ```\n curl -X POST https://lemur.local/api/1/auth/login \\\n -H \"Content-Type: application/json\" \\\n -d '{\"username\":\"alice\",\"password\":\"<alice_pw>\"}'\n ```\n \n3. Confirm the initial state - `bob` is not a member of `operator`:\n ```\n curl https://lemur.local/api/1/roles?filter=name;operator \\\n -H \"Authorization: Bearer <admin_jwt>\"\n # observe: alice present in users list, bob absent\n ```\n \n4. As `alice`, send a PUT that injects `bob` into the `operator` role:\n ```\n curl -X PUT https://lemur.local/api/1/roles/<operator_role_id> \\\n -H \"Authorization: Bearer <alice_jwt>\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"operator\",\n \"description\": \"modified by alice\",\n \"users\": [{\"id\": <alice_id>}, {\"id\": <bob_id>}]\n }'\n # observe: HTTP 200\n ```\n \n5. Confirm `bob` is now a member of `operator`:\n ```\n curl https://lemur.local/api/1/roles?filter=name;operator \\\n -H \"Authorization: Bearer <admin_jwt>\"\n # observe: bob now present in users list\n ```\n \nStep 4 succeeds despite `alice` not being an admin. The same handler also accepts a `name` field; substituting `\"name\": \"operator_v2\"` in step 4 renames the role, demonstrating the second variant of the bug.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lemur"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Netflix/lemur/security/advisories/GHSA-x3vf-mgxj-7785"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Netflix/lemur"
}, {
"type" : "WEB",
"url" : "https://github.com/Netflix/lemur/releases/tag/v1.9.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-25T22:01:18Z",
"nvd_published_at" : null
}
}