{"answers":{"affected":"2 open source packages ship an affected version, including matrix-appservice-irc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-38690 in the wild and no public exploit code.","fix":"Upgrade matrix-appservice-irc to 1.0.1 or later.","what":"CVE-2023-38690 is a medium-severity command injection vulnerability in matrix-org matrix-appservice-irc, published on 4 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-38690 and fix it if it is affected.\n\nWhat it is: CVE-2023-38690 is a medium-severity command injection vulnerability in matrix-org matrix-appservice-irc, published on 4 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-38690 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- matrix-appservice-irc (npm): affected all versions; fixed in 1.0.1\n- matrix-appservice-irc (npm): affected all versions; fixed in 1.0.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-38690/ (Markdown: https://insights.sbomify.com/CVE-2023-38690/index.md)","id":"CVE-2023-38690","markdown":"https://insights.sbomify.com/CVE-2023-38690/index.md","name":"CVE-2023-38690","record":{"aliases":["GHSA-3pmj-jqqp-2mj3"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix IRC bridge","requires_auth":"none","summary":"Attackers can inject IRC commands via crafted channel names, leading to code execution on the bridge bot.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"matrix_irc_bridge","vendor":"matrix"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"matrix-appservice-irc IRC command injection via admin commands containing newlines","id":"CVE-2023-38690","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"matrix-appservice-bridge doesn't verify the sub parameter of an openId token exhange, allowing unauthorized access to provisioning APIs","id":"CVE-2023-38691"},"packages":[{"ecosystem":"npm","fixed":["1.0.1"],"introduced":["0"],"last_affected":[],"package":"matrix-appservice-irc","purl":null,"source":"GHSA-3pmj-jqqp-2mj3"},{"ecosystem":"npm","fixed":["1.0.1"],"introduced":["0"],"last_affected":[],"package":"matrix-appservice-irc","purl":"pkg:npm/matrix-appservice-irc","source":"GHSA-3pmj-jqqp-2mj3"}],"prev":{"headline":"Deserialization of Untrusted Data in network IO","id":"CVE-2023-38689"},"products":["matrix-appservice-irc"],"published":"2023-08-04","related":[{"cvss_score":8.8,"headline":"Parsing issue in matrix-org/node-irc leading to room takeovers","id":"CVE-2022-39203","kev_date_added":null,"published":"2022-09-13"},{"cvss_score":8,"headline":"Improper handling of multiline messages in matrix-appservice-irc","id":"CVE-2022-29166","kev_date_added":null,"published":"2022-05-05"},{"cvss_score":4.6,"headline":"matrix-appservice-irc PgDataStore.ts sql injection","id":"CVE-2022-3971","kev_date_added":null,"published":"2022-11-13"},{"cvss_score":4.3,"headline":"IRC mode parameter confusion in matrix-appservice-irc","id":"CVE-2022-39202","kev_date_added":null,"published":"2022-09-13"},{"cvss_score":3.5,"headline":"matrix-appservice-irc events can be crafted to leak parts of targeted messages from other bridged rooms","id":"CVE-2023-38700","kev_date_added":null,"published":"2023-08-04"},{"cvss_score":2.7,"headline":"Matrix IRC Bridge allows IRC command injection to own puppeted user","id":"CVE-2025-27146","kev_date_added":null,"published":"2025-02-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-08","vendors":["matrix-org"]},"summary":"Attackers can inject IRC commands via crafted channel names, leading to code execution on the bridge bot.","url":"https://insights.sbomify.com/CVE-2023-38690/"}