Vulnerability · Published Aug 4, 2023 · Assigned by GitHub_M

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

Medium 5.8

In plain English

A medium-severity improper input validation in matrix-appservice-irc from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.8Medium
Exploit odds (30 days)0.9%top 41.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmatrix-appservice-irc1.0.1GHSA-3pmj-jqqp-2mj3

Affected products (as reported)

VendorProductVersions
matrix-org matrix-appservice-irc < 1.0.1

Weakness: CWE-20, CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

References