# CVE-2022-29166: Improper handling of multiline messages in matrix-appservice-irc

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-05-05T23:05:14.000Z
- Modified: 2026-06-17T04:39:43.597Z
- Also known as: GHSA-37hr-348p-rmf4
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- matrix-org matrix-appservice-irc: < 0.34.0
- matrix-appservice-irc (npm): before 0.33.2
- matrix matrix_irc_bridge: before 0.33.2

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-37hr-348p-rmf4> (third-party-advisory, web)
- <https://matrix.org/blog/2022/05/04/0-34-0-security-release-for-matrix-appservice-irc-high-severity> (release-notes, vendor-advisory, web)
- <https://github.com/matrix-org/node-irc/security/advisories/GHSA-52rh-5rpj-c3w6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29166> (advisory)
- <https://github.com/matrix-org/matrix-appservice-irc> (package)

## Sources

- CVE List: [CVE-2022-29166](https://www.cve.org/CVERecord?id=CVE-2022-29166), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-37hr-348p-rmf4](https://github.com/advisories/GHSA-37hr-348p-rmf4), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-29166](https://nvd.nist.gov/vuln/detail/CVE-2022-29166), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-29166 · Whole record: https://cve.day/CVE-2022-29166.json · Rebuilt by cve.day 2026-11-25T22:58:11.481Z
