Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1jcTdxLTVjNjctdzM5d84AAuzx

matrix-appservice-irc vulnerable to IRC mode parameter confusion

Impact

IRC 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.

Patches

The vulnerability has been patched in matrix-appservice-irc 0.35.0.

Workarounds

Refrain from entering mode commands suggested by untrusted users. Avoid using multiple modes in a single command.

References

Credits

Discovered and reported by Val Lorentz.

For more information

If you have any questions or comments about this advisory email us at [email protected].

Permalink: https://github.com/advisories/GHSA-cq7q-5c67-w39w
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jcTdxLTVjNjctdzM5d84AAuzx
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: about 1 year ago


CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L

Identifiers: GHSA-cq7q-5c67-w39w, CVE-2022-39202
References: Repository: https://github.com/matrix-org/matrix-appservice-irc
Blast Radius: 0.0

Affected Packages

npm:matrix-appservice-irc
Dependent packages: 2
Dependent repositories: 1
Downloads: 66 last month
Affected Version Ranges: < 0.35.0
Fixed in: 0.35.0
All affected versions: 0.1.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0, 0.13.0, 0.15.2, 0.16.0, 0.17.0, 0.17.1, 0.18.0, 0.19.0, 0.20.1, 0.20.3, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.26.1, 0.27.0, 0.29.0, 0.30.0, 0.31.0, 0.32.1
All unaffected versions: 0.35.0, 0.35.1, 0.36.0