Critical severity · published Aug 4, 2023
CVE-2023-38690
matrix-appservice-irc IRC command injection via admin commands containing newlines
9.8
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
matrix-appservice-irc · matrix-org
< 1.0.1 · source: vendor, CISA
MI
Matrix Irc Bridge · Matrix
before 1.0.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-38690
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-38690
Patch
https://github.com/matrix-org/matrix-appservice-irc/commit/0afb064635d37e039067b5b3d6423448b93026d3
Release Notes
https://github.com/matrix-org/matrix-appservice-irc/releases/tag/1.0.1
Third Party Advisory
https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-3pmj-jqqp-2mj3
More from matrix-appservice-irc
8.8
CVE-2022-39203
Parsing issue in matrix-org/node-irc leading to room takeovers
8.8
CVE-2022-29166
Improper handling of multiline messages in matrix-appservice-irc
6.3
CVE-2022-39202
IRC mode parameter confusion in matrix-appservice-irc
5.4
CVE-2024-52505
matrix-appservice-irc allows IRC Command injection in provisioning API
4.3
CVE-2025-27146
Matrix IRC Bridge allows IRC command injection to own puppeted user
