Ecosyste.ms: Advisories

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

Security Advisories: GSA_kwCzR0hTQS0zcG1qLWpxcXAtMm1qM84AA1Dg

matrix-appservice-irc IRC command injection via admin commands containing newlines

Impact

It is possible to craft a command with newlines which would not be properly parsed. This would mean you could pass a string of commands as a channel name, which would then be run by the IRC bridge bot.

Patches

Versions 1.0.1 and above are patched.

Workarounds

There are no robust workarounds to the bug. You can disable dynamic channels in the config to disable the most common execution method but others may exist. It is highly recommended to upgrade the bridge.

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-3pmj-jqqp-2mj3
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zcG1qLWpxcXAtMm1qM84AA1Dg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 9 months ago
Updated: 6 months ago


CVSS Score: 5.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Identifiers: GHSA-3pmj-jqqp-2mj3, CVE-2023-38690
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: <= 1.0.0
Fixed in: 1.0.1
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, 0.35.0, 0.35.1, 0.36.0
All unaffected versions: