SecurityContext

CVE-2022-39202: matrix-appservice-irc - Broken Access Control

  • Cve: CVE-2022-39202
  • Name: matrix-appservice-irc - Broken Access Control
  • Description: matrix-appservice-irc is an open source Node.js IRC bridge for Matrix. The Internet Relay Chat (IRC) protocol allows you to specify multiple modes in a single mode command. Due to a bug in the underlying matrix-org/node-irc library, affected versions of matrix-appservice-irc perform parsing of such modes incorrectly, potentially resulting in the wrong user being given permissions. Mode commands can only be executed by privileged users, so this can only be abused if an operator is tricked into running the command on behalf of an attacker. The vulnerability has been patched in matrix-appservice-irc 0.35.0. As a workaround users should refrain from entering mode commands suggested by untrusted users. Avoid using multiple modes in a single command.
  • Impact: Privileged users may assign incorrect permissions to users, leading to unauthorized access or privilege escalation.
  • Remediation: Update to version 0.35.0 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: logged_in
  • Requirements: Privileged user must execute mode commands, and user must be tricked into running them.
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
  • Epss score: 0.00898
  • Epss percentile: 0.60521
  • Assignee: [email protected]
  • Published at: 2022-09-13T18:15:15Z
  • Age in days: 1533
  • Modified at: 2026-06-17T04:57:54Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39202
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-269Improper Privilege Management

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/matrix-org/matrix-appservice-irc/commit/5f87dbed87b4b6dc49b7965ff152ee8535719e67Patch, Third Party Advisory
https://matrix.org/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity/Vendor Advisory
https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-cq7q-5c67-w39wThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
matrix:matrix_irc_bridge< 0.35.0nonvd/v1/products/matrix/matrix_irc_bridge

Projects

RepositoryLink kindsIndexedUrl
matrix-org/matrix-appservice-irccommit, package, security_advisoryyes/v1/repositories/matrix-org/matrix-appservice-irc

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts