Skip to content
Heist/ feed
Back to feed
Medium

matrix-sdk-crypto vulnerable to sender of encrypted events being spoofed by homeserver administrator

Type: advisorySources: OSV

matrix-rust-sdk is an implementation of a Matrix client-server library in Rust. matrix-sdk-crypto since version 0.8.0 and up to 0.11.0 does not correctly validate the sender of an encrypted event. Accordingly, a malicious homeserver operator can modify events served to clients, making those events appear to the recipient as if they were sent by another user. This vulnerability is fixed in 0.11.1 and 0.12.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-48937
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:33 UTC · Revision 1

Source evidence

matrix-sdk-crypto vulnerable to sender of encrypted events being spoofed by homeserver administrator

core-osv · Original source

Published 10 Jun 2025, 15:32 UTC

matrix-rust-sdk is an implementation of a Matrix client-server library in Rust. matrix-sdk-crypto since version 0.8.0 and up to 0.11.0 does not correctly validate the sender of an encrypted event. Accordingly, a malicious homeserver operator can modify events served to clients, making those events appear to the recipient as if they were sent by another user. This vulnerability is fixed in 0.11.1 and 0.12.0.

osv:CVE-2025-48937
Complete source record
{
  "id": "9db4aa064267d45ea1e6ffc45c6f892b316abaacdb42bc393444d6389bbe66c6",
  "url": "https://osv.dev/vulnerability/CVE-2025-48937",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "matrix-sdk-crypto vulnerable to sender of encrypted events being spoofed by homeserver administrator",
    "summary": "matrix-rust-sdk is an implementation of a Matrix client-server library in Rust. matrix-sdk-crypto since version 0.8.0 and up to 0.11.0 does not correctly validate the sender of an encrypted event. Accordingly, a malicious homeserver operator can modify events served to clients, making those events appear to the recipient as if they were sent by another user. This vulnerability is fixed in 0.11.1 and 0.12.0.",
    "evidence": "osv:CVE-2025-48937",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-48937",
      "aliases": [
        "CVE-2025-48937",
        "GHSA-x958-rvg6-956w",
        "RUSTSEC-2025-0041"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/matrix-org/matrix-rust-sdk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0b16d488adc6122e7bacb6e11f5e39641fecc774"
                },
                {
                  "fixed": "76d1f8bd1895806d647d7c52a62ef611d14f2350"
                },
                {
                  "fixed": "13c1d2048286bbabf5e7bc6b015aafee98f04d55"
                },
                {
                  "fixed": "56980745b4f27f7dc72ac296e6aa003e5d92a75b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.8.0"
                      },
                      {
                        "fixed": "0.11.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "13c1d2048286bbabf5e7bc6b015aafee98f04d55"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "56980745b4f27f7dc72ac296e6aa003e5d92a75b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "matrix-sdk-ui-0.11.0",
            "matrix-sdk-test-macros-0.11.0",
            "matrix-sdk-test-0.11.0",
            "matrix-sdk-store-encryption-0.11.0",
            "matrix-sdk-sqlite-0.11.0",
            "matrix-sdk-qrcode-0.11.0",
            "matrix-sdk-indexeddb-0.11.0",
            "matrix-sdk-ffi-0.11.0",
            "matrix-sdk-crypto-ffi-0.11.0",
            "matrix-sdk-crypto-0.11.0",
            "matrix-sdk-common-0.11.0",
            "matrix-sdk-base-0.11.0",
            "matrix-sdk-0.11.0",
            "matrix-sdk-ffi/20250408",
            "matrix-sdk-ffi/20250325",
            "matrix-sdk-ffi/20250320",
            "matrix-sdk-ffi/20250306",
            "matrix-sdk-ffi/20250225",
            "matrix-sdk-ffi/20252502",
            "matrix-sdk-ui-0.10.0",
            "matrix-sdk-test-macros-0.10.0",
            "matrix-sdk-test-0.10.0",
            "matrix-sdk-store-encryption-0.10.0",
            "matrix-sdk-sqlite-0.10.0",
            "matrix-sdk-qrcode-0.10.0",
            "matrix-sdk-indexeddb-0.10.0",
            "matrix-sdk-crypto-0.10.0",
            "matrix-sdk-common-0.10.0",
            "matrix-sdk-base-0.10.0",
            "matrix-sdk-0.10.0",
            "matrix-sdk-ffi/20250131",
            "matrix-sdk-ui-0.9.0",
            "matrix-sdk-store-encryption-0.9.0",
            "matrix-sdk-sqlite-0.9.0",
            "matrix-sdk-qrcode-0.9.0",
            "matrix-sdk-indexeddb-0.9.0",
            "matrix-sdk-crypto-0.9.0",
            "matrix-sdk-common-0.9.0",
            "matrix-sdk-base-0.9.0",
            "matrix-sdk-0.9.0",
            "matrix-sdk-ffi/20241204",
            "matrix-sdk-ffi/20241203",
            "matrix-sdk-ffi/20241127",
            "matrix-sdk-ui-0.8.0",
            "matrix-sdk-store-encryption-0.8.0",
            "matrix-sdk-sqlite-0.8.0",
            "matrix-sdk-qrcode-0.8.0",
            "matrix-sdk-indexeddb-0.8.0",
            "matrix-sdk-crypto-0.8.0",
            "matrix-sdk-common-0.8.0",
            "matrix-sdk-base-0.8.0",
            "matrix-sdk-0.8.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48937.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.194950961Z",
      "provider": "osv",
      "references": [
        "https://spec.matrix.org/v1.14/client-server-api/#mmegolmv1aes-sha2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48937.json",
        "https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-x958-rvg6-956w",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-48937",
        "https://github.com/matrix-org/matrix-rust-sdk/commit/13c1d2048286bbabf5e7bc6b015aafee98f04d55",
        "https://github.com/matrix-org/matrix-rust-sdk/commit/56980745b4f27f7dc72ac296e6aa003e5d92a75b"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-290"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48937.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-48937",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491915,
  "published_at": "2025-06-10T15:32:00.822+00:00"
}