{"id":"CVE-2024-32000","published":"2024-04-12T20:02:51Z","modified":"2024-08-02T01:59:50Z","title":"Truncated content of messages can be leaked from matrix-appservice-irc","vendor":"matrix-org","product":"matrix-appservice-irc","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00609,"percentile":0.43353,"provenance":"source"},"cwes":[{"id":"CWE-280","name":"Improper Handling of Insufficient Permissions or Privileges"},{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-wm4w-7h2q-3pf7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/pull/1799","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/blob/d5d67d1d3ea3f0f6962a0af2cc57b56af3ad2129/config.sample.yaml#L601-L604","tags":["x_refsource_MISC"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":8.67},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-appservice-irc","versions":["< 2.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-10T20:18:35.743707Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"matrix-appservice-irc","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-wm4w-7h2q-3pf7"],"provenance":"source"}],"summary":{"text":"matrix-appservice-irc, the Node.js IRC bridge for Matrix, versions before 2.0.0 fail to verify that a user can view an event before building a reply to it, so the truncated body of a message can leak into the bridged IRC channel. An attacker needs network access and low privileges: they must know the target event ID and be joined to both the Matrix room and the bridged IRC channel, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:58Z"},"euvd":{"id":"EUVD-2024-1322","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-matrix-org-matrix-appservice-irc-cve-2023-38700","parents":[{"from":"CVE-2023-38700","to":"CVE-2024-32000","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/bridge/MatrixHandler.ts"],"commits":["https://github.com/matrix-org/matrix-appservice-irc/commit/8bbd2b69a16cbcbeffdd9b5c973fd89d61498d75","https://github.com/matrix-org/matrix-appservice-irc/commit/4af7d3009f10b1f2fb810784c1e491d9d3bee82b"],"basis":"shared function","functions":["MatrixHandler"]}]}],"children":[{"from":"CVE-2024-32000","to":"CVE-2024-39691","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:matrix-appservice-irc","fromFixed":"2.0.0","toFixed":"2.0.1","daysApart":84},{"kind":"same-code","provenance":"machine","files":["src/bridge/MatrixHandler.ts"],"commits":["https://github.com/matrix-org/matrix-appservice-irc/commit/4af7d3009f10b1f2fb810784c1e491d9d3bee82b","https://github.com/matrix-org/matrix-appservice-irc/commit/1835e047f269001054be4c68867797aa12372a0f"],"basis":"shared function","functions":["MatrixHandler"]},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2022-3971","published":"2022-11-13","fixed":"0.36.0","kev":false},{"cve":"CVE-2023-38690","published":"2023-08-04","fixed":"1.0.1","kev":false},{"cve":"CVE-2023-38700","published":"2023-08-04","fixed":"1.0.1","kev":false},{"cve":"CVE-2024-32000","published":"2024-04-12","fixed":"2.0.0","kev":false},{"cve":"CVE-2024-39691","published":"2024-07-05","fixed":"2.0.1","kev":false},{"cve":"CVE-2025-27146","published":"2025-02-25","fixed":"3.0.4","kev":false}],"package":"npm:matrix-appservice-irc"}}