{"id":"CVE-2023-38690","aliases":["CVE-2023-38690","GHSA-3pmj-jqqp-2mj3"],"related":[],"kind":"vulnerability","state":"published","title":"matrix-appservice-irc IRC command injection via admin commands containing newlines","summary":"matrix-appservice-irc is a Node.js IRC bridge for Matrix. Prior to version 1.0.1, it is possible to craft a command with newlines which would not be properly parsed. This would mean you could pass a string of commands as a channel name, which would then be run by the IRC bridge bot. Versions 1.0.1 and above are patched. There are no robust workarounds to the bug. One may disable dynamic channels in the config to disable the most common execution method but others may exist.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"matrix-appservice-irc is a Node.js IRC bridge for Matrix. Prior to version 1.0.1, it is possible to craft a command with newlines which would not be properly parsed. This would mean you could pass a string of commands as a channel name, which would then be run by the IRC bridge bot. Versions 1.0.1 and above are patched. There are no robust workarounds to the bug. One may disable dynamic channels in the config to disable the most common execution method but others may exist.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIt is possible to craft a command with newlines which would not be properly parsed. This would mean you could pass a string of commands as a channel name, which would then be run by the IRC bridge bot. \n\n### Patches\n\nVersions 1.0.1 and above are patched.\n\n### Workarounds\n\nThere are no robust workarounds to the bug. You can disable dynamic channels in the config to disable the most common execution method but others may exist. It is highly recommended to upgrade the bridge.\n\n### Credits\n\nDiscovered and reported by [Val Lorentz](https://valentin-lorentz.fr/).\n\n### For more information\n\nIf you have any questions or comments about this advisory email us at [security@matrix.org](mailto:security@matrix.org).","format":"markdown","source":"ghsa"},{"lang":"es","text":"matrix-appservice-irc es un puente IRC Node.js para Matrix. Antes de la versión 1.0.1, era posible crear un comando con nuevas líneas que no se analizaba correctamente. Esto significaba que podías pasar una cadena de comandos como nombre de canal, que luego sería ejecutado por el bot del puente IRC. Las versiones 1.0.1 y superiores están parcheadas. No hay soluciones robustas para el fallo. Uno puede desactivar los canales dinámicos en la configuración para desactivar el método de ejecución más común, pero pueden existir otros.","source":"nvd"}],"published":"2023-08-04T16:31:41.840Z","modified":"2026-09-10T03:50:08.574Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-20","CWE-77"],"affected":[{"ranges":[{"version":"< 1.0.1","status":"affected"}],"vendor":"matrix-org","product":"matrix-appservice-irc","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.0.1","status":"affected"}],"vendor":"matrix-org","product":"matrix-appservice-irc","cpe":"cpe:2.3:a:matrix-org:matrix-appservice-irc:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"npm","package":"matrix-appservice-irc","purl":"pkg:npm/matrix-appservice-irc","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.1"}],"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-3pmj-jqqp-2mj3","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/commit/0afb064635d37e039067b5b3d6423448b93026d3","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/releases/tag/1.0.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38690","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":"yes","technicalImpact":"partial","date":"2024-10-08T17:45:09.541Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38690","url":"https://www.cve.org/CVERecord?id=CVE-2023-38690","licence":"CVE Terms of Use","modified":"2024-10-08T17:47:24.259Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3pmj-jqqp-2mj3","url":"https://github.com/advisories/GHSA-3pmj-jqqp-2mj3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:08.574Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38690","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38690","licence":"Public domain","modified":"2026-06-17T06:10:57.683Z"}],"updatedAt":"2026-11-25T22:58:26.760Z","epss":{"score":0.00863,"percentile":0.59676,"date":"2026-12-01T12:00:22.000Z"}}