Description
matrix-appservice-irc is a Node.js IRC bridge for Matrix. Prior to version 1.0.1, 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. Versions 1.0.1 and above are patched. There are no robust workarounds to the bug. One may disable dynamic channels in the config to disable the most common execution method but others may exist.
Remediation
References
https://github.com/matrix-org/matrix-appservice-irc/commit/0afb064635d37e039067b5b3d6423448b93026d3
https://github.com/matrix-org/matrix-appservice-irc/releases/tag/1.0.1
https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-3pmj-jqqp-2mj3
Related Vulnerabilities
CVE-2022-23496 Vulnerability in maven package nl.basjes.parse.useragent:yauaa-beam-sql
CVE-2023-26156 Vulnerability in npm package chromedriver
CVE-2020-28442 Vulnerability in npm package js-data
CVE-2022-35915 Vulnerability in npm package openzeppelin-solidity
CVE-2017-12795 Vulnerability in maven package org.openmrs.module:htmlformentry-omod