CVE-2022-36051 Broken Authorization in ZITADEL Actions

High 8.7 Published Updated

Attackers with ORG_OWNER role can use Actions to grant unauthorized access to other organizations' projects due to missing authorization checks.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-36051?

CVE-2022-36051 is a high-severity missing authorization vulnerability in zitadel, published on 31 Aug 2022. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

ZITADEL combines the ease of Auth0 and the versatility of Keycloak.**Actions**, introduced in ZITADEL **1.42.0** on the API and **1.56.0** for Console, is a feature, where users with role.`ORG_OWNER` are able to create Javascript Code, which is invoked by the system at certain points during the login. **Actions**, for example, allow creating authorizations (user grants) on newly created users programmatically. Due to a missing authorization check, **Actions** were able to grant authorizations for projects that belong to other organizations inside the same Instance. Granting authorizations via API and Console is not affected by this vulnerability. There is currently no known workaround, users should update.

Weakness: CWE-863, CWE-436

Which versions are affected by CVE-2022-36051?

4 open source packages ship an affected version, including github.com/zitadel/zitadel. It affects 1 product.

PackageAffectedFixed in
github.com/zitadel/zitadel GoFrom 1.42.01.87.1
github.com/zitadel/zitadel GoFrom 1.42.01.87.1
github.com/zitadel/zitadel GoFrom 2.0.02.2.0
github.com/zitadel/zitadel GoFrom 2.0.02.2.0

Products include Zitadel Zitadel.

How do I fix CVE-2022-36051?

Upgrade github.com/zitadel/zitadel to a fixed version for your release line: 1.87.1 or 2.2.0.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-36051 being exploited?

There is no known exploitation of CVE-2022-36051 in the wild and no public exploit code.

Sources

Also known as GHSA-c8fj-4pm8-mp2c.

Is CVE-2022-36051 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free