Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS13bTR3LTdoMnEtM3BmN84AA67l

Matrix IRC Bridge truncated content of messages can be leaked

Impact

The matrix-appservice-irc before version 2.0.0 can be exploited to leak the truncated body of a message if a malicious user sends a Matrix reply to an event ID they don't have access to. As a precondition to the attack, the malicious user needs to know the event ID of the message they want to leak, as well as to be joined to both the Matrix room and the IRC channel it is bridged to.

The message reply containing the leaked message content is visible to IRC channel members when this happens.

Patches

matrix-appservice-irc 2.0.0 checks whether the user has permission to view an event before constructing a reply. Administrators should upgrade to this version.

Workarounds

It's possible to limit the amount of information leaked by setting a reply template that doesn't contain the original message. See these lines in the configuration file.

References

https://github.com/matrix-org/matrix-appservice-irc/pull/1799

For more information

If you have any questions or comments about this advisory, please email us at security at matrix.org.

Permalink: https://github.com/advisories/GHSA-wm4w-7h2q-3pf7
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13bTR3LTdoMnEtM3BmN84AA67l
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 20 days ago
Updated: 16 days ago


CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-wm4w-7h2q-3pf7, CVE-2024-32000
References: Repository: https://github.com/matrix-org/matrix-appservice-irc
Blast Radius: 0.0

Affected Packages

npm:matrix-appservice-irc
Dependent packages: 2
Dependent repositories: 1
Downloads: 66 last month
Affected Version Ranges: < 2.0.0
Fixed in: 2.0.0
All affected versions: 0.1.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0, 0.13.0, 0.15.2, 0.16.0, 0.17.0, 0.17.1, 0.18.0, 0.19.0, 0.20.1, 0.20.3, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.26.1, 0.27.0, 0.29.0, 0.30.0, 0.31.0, 0.32.1, 0.35.0, 0.35.1, 0.36.0
All unaffected versions: