Skip to content
Heist/ feed
UnratedFix available

Sending custom to-device messages may panics

Type: advisorySource: OSV1 source record

Using the `IdentityBasedStrategy` setting when calling `Device::encrypt_event_raw` or `OlmMachine::encrypt_content_for_devices` may cause a panic if the recipient does not have cross-signing keys.

Announced Source revision 1
Original source ↗

RUSTSEC-2026-0318

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:RUSTSEC-2026-0318

matrix-sdk-crypto

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
0.19.0

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0.0.0-0"
          },
          {
            "fixed": "0.19.0"
          }
        ]
      }
    ],
    "package": {
      "name": "matrix-sdk-crypto",
      "purl": "pkg:cargo/matrix-sdk-crypto",
      "ecosystem": "crates.io"
    },
    "database_specific": {
      "cvss": null,
      "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0318.json",
      "categories": [],
      "informational": null
    },
    "ecosystem_specific": {
      "affects": {
        "os": [],
        "arch": [],
        "functions": [
          "matrix_sdk_crypto::Device::encrypt_event_raw",
          "matrix_sdk_crypto::OlmMachine::encrypt_content_for_devices"
        ]
      },
      "affected_functions": null
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#63811 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement