GitHub Advisoryadvisory · npm
GHSA-3pmj-jqqp-2mj3 matrix-appservice-irc IRC command injection via admin commands containing newlines
MEDIUM
Official page ↗
- Aliases
- CVE-2023-38690
- Ecosystem
- npm
- Packages
- matrix-appservice-irc
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
- Weaknesses
- CWE-20
- Reviewed
- 2023-08-04
Affected packages
• npm matrix-appservice-irc: < 1.0.1 → fixed in 1.0.1
Description
Impact
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.
Patches
Versions 1.0.1 and above are patched.
Workarounds
There are no robust workarounds to the bug. You can disable dynamic channels in the config to disable the most common execution method but others may exist. It is highly recommended to upgrade the bridge.
Credits
Discovered and reported by Val Lorentz.
For more information
If you have any questions or comments about this advisory email us at [email protected].
Related
Alias · CVE (1)
- CVE-2023-38690 matrix-appservice-irc is a Node.js IRC bridge for Matrix. vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-3pmj-jqqp-2mj3 web
- https://nvd.nist.gov/vuln/detail/CVE-2023-38690 advisory
- https://github.com/matrix-org/matrix-appservice-irc/commit/0afb064635d37e039067b5b3d6423448b93026d3 web
- https://github.com/matrix-org/matrix-appservice-irc package
- https://github.com/matrix-org/matrix-appservice-irc/releases/tag/1.0.1 web