# GHSA-pcpm-vc4v-cmvx: eZ Platform users with the Company admin role can assign any role to any user

> Users with Company admin or role assignment policies can bypass subtree limitations to assign any role to any user, leading to privilege escalation.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Nov 2022

## What is GHSA-pcpm-vc4v-cmvx?

GHSA-pcpm-vc4v-cmvx is a vulnerability in ezsystems/ezplatform-admin-ui, published on 10 Nov 2022. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Critical severity. Users with the Company admin role (introduced by the company account feature in v4) can assign any role to any user. This also applies to any other user that has the role / assign policy. Any subtree limitation in place does not have any effect.

The role / assign policy is typically only given to administrators, which limits the scope in most cases, but please verify who has this policy in your installaton. The fix ensures that subtree limitations are working as intended.

## Which versions are affected by GHSA-pcpm-vc4v-cmvx?

4 open source packages ship an affected version, including ezsystems/ezplatform-admin-ui.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.5.0 | 1.5.29 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.5.0 | 1.5.29 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 2.3.0 | 2.3.26 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 2.3.0 | 2.3.26 |

## How do I fix GHSA-pcpm-vc4v-cmvx?

Upgrade ezsystems/ezplatform-admin-ui to a fixed version for your release line: 1.5.29 or 2.3.26.

## Is GHSA-pcpm-vc4v-cmvx being exploited?

There is no known exploitation of GHSA-pcpm-vc4v-cmvx in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-pcpm-vc4v-cmvx and fix it if it is affected.

What it is: GHSA-pcpm-vc4v-cmvx is a vulnerability in ezsystems/ezplatform-admin-ui, published on 10 Nov 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-pcpm-vc4v-cmvx in the wild and no public exploit code.

Affected packages and fixed versions:
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.5.0; fixed in 1.5.29
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.5.0; fixed in 1.5.29
- ezsystems/ezplatform-admin-ui (Packagist): affected from 2.3.0; fixed in 2.3.26
- ezsystems/ezplatform-admin-ui (Packagist): affected from 2.3.0; fixed in 2.3.26

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-pcpm-vc4v-cmvx/ (Markdown: https://insights.sbomify.com/GHSA-pcpm-vc4v-cmvx/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-pcpm-vc4v-cmvx

---
From sbomify Insights: https://insights.sbomify.com/GHSA-pcpm-vc4v-cmvx/
Summaries are generated and may contain mistakes; the official description above is the record.
