GHSA-3pmj-jqqp-2mj3

Suggest an improvement
Source
https://github.com/advisories/GHSA-3pmj-jqqp-2mj3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/08/GHSA-3pmj-jqqp-2mj3/GHSA-3pmj-jqqp-2mj3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3pmj-jqqp-2mj3
Aliases
Related
Published
2023-08-04T17:26:45Z
Modified
2024-06-20T14:53:30Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
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 security@matrix.org.

Database specific
{
    "nvd_published_at": "2023-08-04T17:15:10Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-04T17:26:45Z"
}
References

Affected packages

npm / matrix-appservice-irc

Package

Name
matrix-appservice-irc
View open source insights on deps.dev
Purl
pkg:npm/matrix-appservice-irc

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.1

Database specific

{
    "last_known_affected_version_range": "<= 1.0.0"
}