RUSTSEC-2026-0588

Source
https://rustsec.org/advisories/RUSTSEC-2026-0588
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0588.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0588
Published
2026-11-19T12:00:00Z
Modified
2026-11-22T09:45:02Z
Summary
Validating Matrix Content URIs may panic
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / ruma-identifiers-validation

Package

Name
ruma-identifiers-validation
View open source insights on deps.dev
Purl
pkg:cargo/ruma-identifiers-validation

Affected ranges

Type
SEMVER
Events
Introduced
0.2.3
Fixed
0.13.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "ruma_identifiers_validation::mxc_uri::validate"
        ],
        "os": []
    }
}

Database specific

categories
[
    "denial-of-service"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0588.json"