GHSA-p2q9-36vw-c468: olm-sys Wrapped Library Unmaintained, Potentially Vulnerable Vulnerability

HIGH
CWE-1395
Published
Advisory Summary

GHSA-p2q9-36vw-c468 is a HIGH wrapped library unmaintained, potentially vulnerable vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting olm-sys libraries in the crates.io ecosystem. The issue involves wrapped library unmaintained, potentially vulnerable. Remediation is available in the latest vendor maintenance releases.

GHSA-p2q9-36vw-c468 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-p2q9-36vw-c468
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product olm-sys
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-p2q9-36vw-c468

To remediate this vulnerability, upgrade all affected olm-sys dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

olm-sys fixed: Latest secure release
Upgrade olm-sys to Latest secure release
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 olm-sys

How to Check if You Are Affected

To determine whether your application is affected by GHSA-p2q9-36vw-c468, inspect your project dependencies for olm-sys:

inspect dependencies for olm-sys

Analyze the terminal output to locate any version of olm-sys in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In olm-sys, 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

After several cryptographic vulnerabilities in `libolm` were disclosed publicly, the Matrix Foundation has [officially deprecated the library](https://matrix.org/blog/2024/08/libolm-deprecation/). `olm-sys` is a thin wrapper around `libolm` and is now deprecated and potentially vulnerable in kind. Users of `olm-sys` and its higher-level abstraction, `olm-rs`, are highly encouraged to switch to [`vodozemac`](https://crates.io/crates/vodozemac) as soon as possible. It is the successor effort to `libolm` and is written in Rust.

GHSA-p2q9-36vw-c468 Affected olm-sys Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
olm-sys
crates.io
≤ 1.3.2

References

Frequently Asked Questions

What is GHSA-p2q9-36vw-c468?
GHSA-p2q9-36vw-c468 is a security vulnerability in olm-sys involving wrapped library unmaintained, potentially vulnerable under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which olm-sys versions are affected?
Affected versions include releases prior to current release patches across affected packages: olm-sys.
What version fixes GHSA-p2q9-36vw-c468?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is olm-sys affected?
Yes, olm-sys is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-p2q9-36vw-c468?
GHSA-p2q9-36vw-c468 is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check crates.io dependencies for GHSA-p2q9-36vw-c468?
Run the dependency tree command: 'inspect dependencies for olm-sys'. 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-p2q9-36vw-c468",
  "modified" : "2024-09-03T21:11:21Z",
  "published" : "2024-09-03T21:11:21Z",
  "aliases" : [ ],
  "summary" : "olm-sys: wrapped library unmaintained, potentially vulnerable",
  "details" : "After several cryptographic vulnerabilities in `libolm` were disclosed publicly, the Matrix Foundation has [officially deprecated the library](https://matrix.org/blog/2024/08/libolm-deprecation/). `olm-sys` is a thin wrapper around `libolm` and is now deprecated and potentially vulnerable in kind.\n\nUsers of `olm-sys` and its higher-level abstraction, `olm-rs`, are highly encouraged to switch to [`vodozemac`](https://crates.io/crates/vodozemac) as soon as possible. It is the successor effort to `libolm` and is written in Rust.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "olm-sys"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://gitlab.gnome.org/BrainBlasted/olm-sys"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.gnome.org/BrainBlasted/olm-sys/-/issues/12"
  }, {
    "type" : "WEB",
    "url" : "https://matrix.org/blog/2024/08/libolm-deprecation"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0368.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-03T21:11:21Z",
    "nvd_published_at" : null
  }
}