CVE-2023-38700: Matrix appservice irc Matrix-appservice-irc Events Can Be Crafted Vulnerability
LOWCVE-2023-38700 is a LOW (CVSS 3.5) matrix-appservice-irc events can be crafted vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Matrix appservice irc libraries in the npm ecosystem. The issue involves matrix-appservice-irc events can be crafted to leak parts of targeted messages from other bridged rooms. Remediation is available by upgrading affected packages to version 1.0.1.
CVE-2023-38700 at a Glance
Security Impact
CVSS: 3.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N).
How to Fix CVE-2023-38700
To remediate this vulnerability, upgrade all affected Matrix appservice irc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install matrix-appservice-irc@1.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls matrix-appservice-irc
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-38700, inspect your project dependencies using npm:
npm ls matrix-appservice-irc
Analyze the terminal output to locate any version of Matrix appservice irc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.
Note: The npm ls matrix-appservice-irc command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Matrix appservice irc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-38700 Affected Matrix appservice irc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-appservice-irc
|
npm |
< 1.0.1
|
1.0.1
|
References
Frequently Asked Questions
What is CVE-2023-38700?
Which Matrix appservice irc versions are affected?
What version fixes CVE-2023-38700?
Is matrix-appservice-irc affected?
What is the CVSS score of CVE-2023-38700?
What CWE is associated with CVE-2023-38700?
How can I check npm dependencies for CVE-2023-38700?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c7hh-3v6c-fj4q",
"modified" : "2023-08-04T17:26:07Z",
"published" : "2023-08-04T17:26:07Z",
"aliases" : [ "CVE-2023-38700" ],
"summary" : "matrix-appservice-irc events can be crafted to leak parts of targeted messages from other bridged rooms",
"details" : "### Impact\n\nIt was possible to craft an event such that it would leak part of a targeted message event from another bridged room. This required knowing an event ID to target.\n\n### Patches\n\nPlease upgrade to 1.0.1.\n\n### Workarounds\n\nYou can set the `matrixHandler.eventCacheSize` config value to `0` to workaround this bug. However, this may impact performance.\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).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "matrix-appservice-irc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-c7hh-3v6c-fj4q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38700"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-appservice-irc/commit/8bbd2b69a16cbcbeffdd9b5c973fd89d61498d75"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matrix-org/matrix-appservice-irc"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-appservice-irc/releases/tag/1.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-04T17:26:07Z",
"nvd_published_at" : "2023-08-04T19:15:09Z"
}
}