LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31168: Zulip Server insufficient authorization for changing bot roles

Zulip is an open source team chat tool. Due to an incorrect authorization check in Zulip Server 5.4 and earlier, a member of an organization could craft an API call that grants organization administrator privileges to one of their bots. The vulnerability is fixed in Zulip Server 5.5. Members who don’t own any bots, and lack permission to create them, can’t exploit the vulnerability. As a workaround for the vulnerability, an organization administrator can restrict the `Who can create bots` permission to administrators only, and change the ownership of existing bots.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-31168 is a Zulip Server authorization flaw. In versions 5.4 and earlier, an ordinary organization member could make one of their bots an organization administrator. This matters because administrator access in a chat system can affect organizational settings and data visibility, but exploitation requires an authenticated member with bot ownership or bot-creation rights.

Executive priority

Treat as moderate priority. Patch promptly for any Zulip Server deployment below 5.5, especially if bot creation is broadly available. Escalate urgency if collaboration administrators have access to sensitive settings, integrations, or organization-wide communication controls.

Technical view

Zulip Server before 5.5 performed an incorrect authorization check when changing bot roles. A low-privileged organization member could craft an API request that grants organization administrator privileges to a bot they own. The issue maps to CWE-285 and CWE-863 and has CVSS 3.1 score 5.4.

Likely exposure

Exposure is limited to Zulip Server versions earlier than 5.5. Risk is higher where ordinary members can create bots or already own bots. Members who do not own bots and cannot create them are not exploitable under the vendor description.

Exploitation context

The source bundle does not show active exploitation, and CVE is not listed as KEV. Exploitation requires authenticated organization membership and bot ownership or bot-creation permission. The impact is privilege escalation to organization administrator through a bot, with limited confidentiality and integrity impact in the CVSS assessment.

Researcher notes

Vendor sources identify the vulnerable authorization path, fix release, and related commit. Evidence supports authenticated privilege escalation but not public exploitation. Avoid assuming unauthenticated reachability, affected hosted services, or fixes beyond upgrading to 5.5 and tightening bot-creation and ownership controls.

Mitigation direction

  • Upgrade Zulip Server to version 5.5 or later.
  • Restrict the “Who can create bots” permission to administrators only.
  • Change ownership of existing bots away from non-admin members where appropriate.
  • Review Zulip vendor advisory and release notes before applying operational changes.

Validation and detection

  • Confirm the deployed Zulip Server version is 5.5 or later.
  • Review organization permissions for who can create bots.
  • Inventory existing bots and identify their owners.
  • Verify non-admin members cannot assign administrator privileges to bots.
  • Check change records for unexpected bot role or ownership changes.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-285: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-863: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31168 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2022-31168Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
zulipzulip< 5.5Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-285 · source CWE mapping

Improper Authorization

Improper Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-863 · source CWE mapping

Incorrect Authorization

Incorrect Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.