Advisory

GHSA-3pmj-jqqp-2mj3

Also known as: CVE-2023-38690

Summary

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

Details

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]](mailto:[email protected]).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-08-04 17:26 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

matrix-appservice-irc

npm · All systems

Affected

  • introduced 0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences