CVE-2023-38690: matrix-appservice-irc IRC command injection via admin commands containing newlines
Vulnerability summary
CVE-2023-38690 is a critical (CVSS 9.8) Improper Input Validation vulnerability in matrix-org matrix-appservice-irc. EPSS estimates a 0.86% chance of exploitation in the next 30 days, higher than 59.8% of scored vulnerabilities.
Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 04-08-2023PublishedVulnerability first disclosed.
- 08-10-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.8MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:NDiffers
- OSV · NpmEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.86%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.86% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-77Improper Neutralization of Special Elements used in a CommandThe product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Matrix1 product
- matrix_irc_bridge< 1.0.1
Matrix-org1 product
- matrix-appservice-irc< 1.0.1
Npm1 product
- matrix-appservice-irc< 1.0.1
3 vendors · 3 products
References
5 links- github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-3pmj-jqqp-2mj3X Refsource CONFIRMWEBThird Party Advisory
- github.com/matrix-org/matrix-appservice-irc/commit/0afb064635d37e039067b5b3d6423448b93026d3X Refsource MISCWEBPatch