# GHSA-XXWR-VVR3-2G9F: Incorrect handling of set modifications allows authenticated arbitrary writes to database content

- Database: GitHub
- Severity: CVSS 9.3 (Critical)
- Published: 2026-05-14
- Modified: 2026-05-14

## Affected versions

- kanidm (crates.io): fixed in 1.9.3

## Description

### Impact
Any authenticated user is able to modify any attribute of any other object that they have the rights to search/read. Since all authenticated users can read groups, this allows arbitrary modification of any group membership content resulting in any user gaining full privileges over the IDM database. 

### Cause

A non exhaustive enumeration allowed `Modify::Set` (used in SCIM to update whole ValueSet's at once) to have it's attributes excluded from the requested removed / present sets. If the only operation was a `Modify::Set` operation, since the requested removed / present are now empty, then the check for is_subset of allowed present/remove would always return true since an empty set is a subset of another empty set. 

### Patches
```
>= 1.9.4
>= 1.10.2
```

After application of patches all operators are advised to audit the membership of groups in their database, especially groups that are marked as `idm_high_privilege`. Notable groups to audit include `system_admins` and `idm_admins`. 

### Workarounds
No workarounds are available.

### Post Incident

This is the worst possible case of vulnerability in Kanidm. To prevent this occurring again it's important we take lessons from this incident:

* In the short term, avoidance of `_ =>` matches that allow edge cases to be introduced over time.
* Longer term, a rework of our access controls that more strongly relies on rust's type system to enforce that bypasses can not exist and are validated during compilation.

## References

- https://github.com/kanidm/kanidm/security/advisories/GHSA-xxwr-vvr3-2g9f

Page: https://cve.now/GHSA-XXWR-VVR3-2G9F

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
