Skip to content

← Public intelligence

crates.io package

ruma-identifiers-validation

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Unratedcrates.ioPublished

    Validating Matrix key IDs may panic

    Affected
    • crates.io ruma-identifiers-validation >= 0.0.0-0, < 0.14.0
    Fixed in
    0.14.0· Vendor fix available
    Issue
    Using `key_id::validate` may panic if the `algorithm` part of the key ID is longer than 255 bytes and contains non-ASCII characters. The affected versions assumed that the length of the first part containing the encryption or signing algorithm (the part before the colon) would fit into a `NonZeroU8`, but the length of the first part wasn't validated.

    Recommended action: Upgrade to 0.14.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  2. Unratedcrates.ioPublished

    Validating Matrix Content URIs may panic

    Affected
    • crates.io ruma-identifiers-validation >= 0.2.3, < 0.13.0
    Fixed in
    0.13.0· Vendor fix available
    Issue
    Using `mxc_uri::validate` may panic if the server name part of the URI is larger than 249 bytes. The affected versions assumed that the length of the first part of the URI (`mxc://{server_name}`) would fit into a `NonZeroU8`, but the length of the server name wasn't validated and the Matrix specification actually allows the server name to have a maximum length of 261 bytes.

    Recommended action: Upgrade to 0.13.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →