{"id":"CVE-2022-29166","aliases":["CVE-2022-29166","GHSA-37hr-348p-rmf4"],"related":[],"kind":"vulnerability","state":"published","title":"Improper handling of multiline messages in matrix-appservice-irc","summary":"matrix-appservice-irc is a Node.js IRC bridge for Matrix. The vulnerability in node-irc allows an attacker to manipulate a Matrix user into executing IRC commands by having them reply to a maliciously crafted message. The vulnerability has been patched in matrix-appservice-irc 0.33.2. Refrain from replying to messages from untrusted participants in IRC-bridged Matrix rooms. There are no known workarounds for this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"matrix-appservice-irc is a Node.js IRC bridge for Matrix. The vulnerability in node-irc allows an attacker to manipulate a Matrix user into executing IRC commands by having them reply to a maliciously crafted message. The vulnerability has been patched in matrix-appservice-irc 0.33.2. Refrain from replying to messages from untrusted participants in IRC-bridged Matrix rooms. There are no known workarounds for this issue.","source":"cvelist"},{"lang":"en","text":"matrix-appservice-irc provides an IRC bridge for Matrix. The vulnerability in node-irc allows an attacker to manipulate a Matrix user into executing IRC commands by having them reply to a maliciously crafted message. The vulnerability has been patched in matrix-appservice-irc 0.33.2. In terms of a workaround, users should refrain from replying to messages from untrusted participants in IRC-bridged Matrix rooms.","format":"markdown","source":"ghsa"},{"lang":"es","text":"matrix-appservice-irc es un puente IRC de Node.js para Matrix. La vulnerabilidad en node-irc permite a un atacante manipular a un usuario de Matrix para que ejecute comandos de IRC haciendo que responda a un mensaje maliciosamente diseñado. La vulnerabilidad ha sido parcheada en matrix-appservice-irc versión 0.33.2. Absténgase de responder a mensajes de participantes que no sean confiables en las salas de Matrix con puente de IRC. No se presentan medidas de mitigación conocidas para este problema","source":"nvd"}],"published":"2022-05-05T23:05:14.000Z","modified":"2026-06-17T04:39:43.597Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 0.34.0","status":"affected"}],"vendor":"matrix-org","product":"matrix-appservice-irc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.33.2"}],"ecosystem":"npm","package":"matrix-appservice-irc","purl":"pkg:npm/matrix-appservice-irc","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.33.2"}],"vendor":"matrix","product":"matrix_irc_bridge","cpe":"cpe:2.3:a:matrix:matrix_irc_bridge:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-37hr-348p-rmf4","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://matrix.org/blog/2022/05/04/0-34-0-security-release-for-matrix-appservice-irc-high-severity","tags":["release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/node-irc/security/advisories/GHSA-52rh-5rpj-c3w6","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29166","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/matrix-appservice-irc","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:53:31.570Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-29166","url":"https://www.cve.org/CVERecord?id=CVE-2022-29166","licence":"CVE Terms of Use","modified":"2025-04-23T18:30:37.402Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-37hr-348p-rmf4","url":"https://github.com/advisories/GHSA-37hr-348p-rmf4","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:08.560Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-29166","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29166","licence":"Public domain","modified":"2026-06-17T04:39:43.597Z"}],"updatedAt":"2026-11-25T22:58:11.481Z","epss":{"score":0.01005,"percentile":0.63933,"date":"2026-12-01T12:00:22.000Z"}}