CVE-2023-38690 matrix-appservice-irc IRC command injection via admin commands containing newlines
CriticalCVSS 9.8
EPSS 0.86%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| matrix irc bridge | < 1.0.1 | 1.0.1 | Fixed |
| matrix-org matrix-appservice-irc | < 1.0.1; = < 1.0.1 | 1.0.1 | Fixed |
| npm matrix-appservice-irc(npm) | < 1.0.1; <= 1.0.0 | 1.0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm matrix-appservice-irc(npm) | <= 1.0.0 | No fix listed |
| matrix-org matrix-appservice-irc | = < 1.0.1 | No fix listed |
| matrix-org matrix-appservice-irc | < 1.0.1 | 1.0.1 |
| matrix irc bridge | < 1.0.1 | 1.0.1 |
| npm matrix-appservice-irc(npm) | < 1.0.1 | 1.0.1 |
References
- https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-3pmj-jqqp-2mj3 third-party-advisory vendor-advisory
- https://github.com/matrix-org/matrix-appservice-irc/commit/0afb064635d37e039067b5b3d6423448b93026d3 patch
- https://github.com/matrix-org/matrix-appservice-irc/releases/tag/1.0.1 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product