CVE-2024-32000
JSON

4.3medium

Truncated content of messages can be leaked from matrix-appservice-irc

Severity
4.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wm4w-7h2q-3pf7

Description

matrix-appservice-irc is a Node.js IRC bridge for the Matrix messaging protocol. 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. 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. 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 `601-604` in the configuration file linked.

Affected

Product or packageVersionsReported by
matrix-org matrix-appservice-irc< 2.0.0CVE List
matrix-appservice-irc (npm)before 2.0.0GitHub Advisory Database

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-280CWE-755

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

matrix-appservice-irc is a Node.js IRC bridge for the Matrix messaging protocol. 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. 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. 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 `601-604` in the configuration file linked.

GitHub Advisory Database
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.

NVD (es)

Matrix-appservice-irc es un puente IRC de Node.js para el protocolo de mensajería Matrix. Matrix-appservice-irc anterior a la versión 2.0.0 puede explotarse para filtrar el cuerpo truncado de un mensaje si un usuario malintencionado envía una respuesta de Matrix a un ID de evento al que no tiene acceso. Como condición previa al ataque, el usuario malintencionado necesita conocer el ID del evento del mensaje que desea filtrar, así como estar unido tanto a la sala Matrix como al canal IRC al que está conectado. La respuesta al mensaje que contiene el contenido del mensaje filtrado es visible para los miembros del canal IRC cuando esto sucede. Matrix-appservice-irc 2.0.0 comprueba si el usuario tiene permiso para ver un evento antes de construir una respuesta. Los administradores deben actualizar a esta versión. Es posible limitar la cantidad de información filtrada configurando una plantilla de respuesta que no contenga el mensaje original. Consulte estas líneas `601-604` en el archivo de configuración vinculado.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-32000 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-wm4w-7h2q-3pf7 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-32000 changed 2026-06-17Public domain