CVE-2023-38700: Matrix appservice irc Matrix-appservice-irc Events Can Be Crafted Vulnerability

LOW
Advisory Identifier: GHSA-c7hh-3v6c-fj4q
CVSS 3.5
CWE-200
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-38700
GHSA Identifier GHSA-c7hh-3v6c-fj4q
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Matrix appservice irc
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

matrix-appservice-irc fixed: 1.0.1
npm install matrix-appservice-irc@1.0.1
Verify Direct and Transitive Dependencies

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

### Impact It 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. ### Patches Please upgrade to 1.0.1. ### Workarounds You can set the `matrixHandler.eventCacheSize` config value to `0` to workaround this bug. However, this may impact performance. ### Credits Discovered and reported by [Val Lorentz](https://valentin-lorentz.fr/). ### For more information If you have any questions or comments about this advisory email us at [security@matrix.org](mailto:security@matrix.org).

CVE-2023-38700 Affected Matrix appservice irc Versions

1 component(s)
Fixed Versions:
1.0.1
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?
CVE-2023-38700 is a security vulnerability in Matrix appservice irc involving matrix-appservice-irc events can be crafted to leak parts of targeted messages from other bridged rooms under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Matrix appservice irc versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: matrix-appservice-irc.
What version fixes CVE-2023-38700?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-appservice-irc affected?
Yes, matrix-appservice-irc is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What is the CVSS score of CVE-2023-38700?
CVE-2023-38700 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2023-38700?
CVE-2023-38700 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2023-38700?
Run the dependency tree command: 'npm ls matrix-appservice-irc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}