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

Published Aug 4, 2023
·
Updated

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 security@matrix.org.

Other sources

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 Software

2 affected componentsFixes available
npm/matrix-appservice-irc<=1.0.0
1.0.1
matrix Matrix Irc Bridge Node.js<1.0.1

Event History

Aug 4, 2023
CVE Published
via MITRE·04:31 PM
Data Sourced
via MITRE·04:31 PM
DescriptionSeverityWeakness
Data Sourced
05:15 PM
DescriptionWeakness
Advisory Published
via GitHub·05:26 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-38690?

The severity of CVE-2023-38690 is critical with a CVSS score of 9.8.

2

How can I exploit CVE-2023-38690?

To exploit CVE-2023-38690, you would need to craft a command with newlines to be run by the IRC bridge bot.

3

Is CVE-2023-38690 patched?

Yes, CVE-2023-38690 is patched in versions 1.0.1 and above.

4

Are there any workarounds for CVE-2023-38690?

No, there are no known workarounds for CVE-2023-38690.

5

Where can I find more information about CVE-2023-38690?

You can find more information about CVE-2023-38690 on the GitHub security advisories and release pages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203