Improper handling of multiline messages in matrix-appservice-irc
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-29166
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:07 UTC · Revision 1
Source evidence
Improper handling of multiline messages in matrix-appservice-irc
core-osv · Original sourcePublished 5 May 2022, 23:05 UTC
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.
osv:CVE-2022-29166
Complete source record
{
"id": "7a7ab9fd1bd78a96b12b45306cfd8677b141a81460fde563c7da5c23c53961d4",
"url": "https://osv.dev/vulnerability/CVE-2022-29166",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2022-29166",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-29166",
"aliases": [
"CVE-2022-29166",
"GHSA-37hr-348p-rmf4"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/matrix-org/matrix-appservice-irc",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "8faf9614e80073e3cf07c96dbd295379d80f4161"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.34.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
}
],
"versions": [
"0.32.1",
"0.26.1",
"0.26.0",
"0.26.0-rc2",
"0.26.0-rc1",
"0.25.0-rc1",
"0.24.0",
"0.24.0-rc1",
"0.23.0-fosdem",
"0.23.0",
"0.23.0-rc1",
"0.22.0",
"0.22.0-rc1",
"0.21.0",
"0.21.0-rc3",
"0.20.2",
"develop-2019-02-17",
"0.15.2",
"0.14.0-rc4",
"0.14.0-rc3",
"0.14.0-rc2",
"0.14.0-rc1",
"develop-2019-11-28",
"develop-2019-11-26",
"develop-2019-11-15",
"develop-2019-11-12",
"matrix-org-testing",
"0.10.1",
"v0.9.1",
"v0.9.0",
"v0.9.0-rc1",
"0.7.1",
"0.7.0",
"0.5.0",
"0.1.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29166.json"
}
}
],
"modified": "2026-10-28T02:30:53.024341646Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29166.json",
"https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-37hr-348p-rmf4",
"https://nvd.nist.gov/vuln/detail/CVE-2022-29166",
"https://matrix.org/blog/2022/05/04/0-34-0-security-release-for-matrix-appservice-irc-high-severity"
],
"provider_metadata": {
"cwe_ids": [
"CWE-74"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29166.json"
}
},
"related_cves": [
{
"value": "CVE-2022-29166",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521633,
"published_at": "2022-05-05T23:05:14+00:00"
}