CVE-2024-52813: Matrix sdk crypto Matrix-sdk-crypto Missing Facility To Signal Vulnerability

MODERATE
Advisory Identifier: GHSA-r5vf-wf4h-82gg
CVSS 4.3
CWE-223 CWE-347
Published
Advisory Summary

CVE-2024-52813 is a MODERATE (CVSS 4.3) matrix-sdk-crypto missing facility to signal vulnerability (CWE-223: Omission of Security-relevant Information) affecting Matrix sdk crypto libraries in the crates.io ecosystem. The issue involves matrix-sdk-crypto missing facility to signal rotation of a verified cryptographic identity. Remediation is available by upgrading affected packages to version 0.8.0.

CVE-2024-52813 at a Glance

CVE Identifier CVE-2024-52813
GHSA Identifier GHSA-r5vf-wf4h-82gg
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-223: Omission of Security-relevant Information
Affected Product Matrix sdk crypto
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-52813

To remediate this vulnerability, upgrade all affected Matrix sdk crypto 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-sdk-crypto fixed: 0.8.0
Upgrade matrix-sdk-crypto to 0.8.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for matrix-sdk-crypto

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-52813, inspect your project dependencies for Matrix sdk crypto:

inspect dependencies for matrix-sdk-crypto

Analyze the terminal output to locate any version of Matrix sdk crypto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-223: Omission of Security-relevant Information, where the product does not record or display information that would be important for identifying the source or nature of an attack, or determining if an action is safe. In Matrix sdk crypto, 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 Versions of the matrix-sdk-crypto Rust crate before 0.8.0 lack a dedicated mechanism to notify that a user's cryptographic identity has changed from a verified to an unverified one, which could cause client applications relying on the SDK to overlook such changes. ### Patches matrix-sdk-crypto 0.8.0 adds a new `VerificationLevel::VerificationViolation` enum variant which indicates that a previously verified identity has been changed. ### References - Patch: https://github.com/matrix-org/matrix-rust-sdk/pull/3795

CVE-2024-52813 Affected Matrix sdk crypto Versions

1 component(s)
Fixed Versions:
0.8.0
Product / Package Ecosystem Affected Versions Fixed Version
matrix-sdk-crypto
crates.io
< 0.8.0
0.8.0

References

Frequently Asked Questions

What is CVE-2024-52813?
CVE-2024-52813 is a security vulnerability in Matrix sdk crypto involving matrix-sdk-crypto missing facility to signal rotation of a verified cryptographic identity under CWE-223: Omission of Security-relevant Information.
Which Matrix sdk crypto versions are affected?
Affected versions include releases prior to 0.8.0 across affected packages: matrix-sdk-crypto.
What version fixes CVE-2024-52813?
Upgrading to 0.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-sdk-crypto affected?
Yes, matrix-sdk-crypto is affected in releases prior to 0.8.0. Upgrade your dependency to 0.8.0 or later.
What is the CVSS score of CVE-2024-52813?
CVE-2024-52813 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-52813?
CVE-2024-52813 is classified under CWE-223: Omission of Security-relevant Information (The product does not record or display information that would be important for identifying the source or nature of an attack, or determining if an action is safe.).
How can I check crates.io dependencies for CVE-2024-52813?
Run the dependency tree command: 'inspect dependencies for matrix-sdk-crypto'. 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-r5vf-wf4h-82gg",
  "modified" : "2025-01-22T17:37:49Z",
  "published" : "2025-01-07T15:25:52Z",
  "aliases" : [ "CVE-2024-52813" ],
  "summary" : "matrix-sdk-crypto missing facility to signal rotation of a verified cryptographic identity",
  "details" : "### Impact\n\nVersions of the matrix-sdk-crypto Rust crate before 0.8.0 lack a dedicated mechanism to notify that a user's cryptographic identity has changed from a verified to an unverified one, which could cause client applications relying on the SDK to overlook such changes.\n\n### Patches\n\nmatrix-sdk-crypto 0.8.0 adds a new `VerificationLevel::VerificationViolation` enum variant which indicates that a previously verified identity has been changed.\n\n### References\n\n- Patch: https://github.com/matrix-org/matrix-rust-sdk/pull/3795\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "matrix-sdk-crypto"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-r5vf-wf4h-82gg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52813"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/matrix-org/matrix-rust-sdk/pull/3795"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/matrix-org/matrix-rust-sdk"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0434.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-223", "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-07T15:25:52Z",
    "nvd_published_at" : "2025-01-07T16:15:35Z"
  }
}