{"id":"CVE-2022-39202","published":"2022-09-13T18:10:15Z","modified":"2025-04-23T17:11:14Z","title":"IRC mode parameter confusion in matrix-appservice-irc","vendor":"matrix-org","product":"matrix-appservice-irc","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00898,"percentile":0.60477,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-cq7q-5c67-w39w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/commit/5f87dbed87b4b6dc49b7965ff152ee8535719e67","tags":["x_refsource_MISC"]},{"url":"https://matrix.org/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity/","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":12.1},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-appservice-irc","versions":["< 0.35.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:00:40.533013Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"matrix-appservice-irc","vulnerableRanges":["<0.35.0"],"patched":["0.35.0"],"from":["GHSA-cq7q-5c67-w39w"],"provenance":"source"}],"summary":{"text":"The flaw is an IRC mode parsing bug in the matrix-appservice-irc product, specifically in its use of the underlying matrix-org/node-irc library, which causes multi-mode commands to be interpreted incorrectly and can grant permissions to the wrong user. An attacker could exploit this over the network, but only with privileged access and by tricking an operator into running a mode command the attacker has supplied, so user interaction and existing privileges are required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:54Z"},"euvd":{"id":"EUVD-2022-6782","exploited":false,"provenance":"source"}}