RUSTSEC-2026-0499

Source
https://rustsec.org/advisories/RUSTSEC-2026-0499
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0499.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0499
Aliases
  • GHSA-9c8r-76f3-m426
Published
2026-11-11T12:00:00Z
Modified
2026-11-12T08:00:03Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Signature::from_der reads a signature with bytes after it, a wrong sequence length or an unneeded zero as the signature
Details

Signature::from_der read a DER-encoded ECDSA signature leniently. It read as the signature: the signature followed by other bytes; a sequence length shorter than its contents, or longer with bytes after them (a length byte with its high bit set among them); and an R or S preceded by a zero byte it did not need. It read a lone-zero R or S as zero.

messages::verify, compat::bsm::verify_message_der, auth::Certificate::verify, auth::VerifiableCertificate::verify, wallet::ProtoWallet::verify_signature and kvstore::KVStoreInterpreter::verify_signature read through it, and each verified such a form of a valid signature. Given one signature a key holder made, anyone could produce other byte strings that verify as that signature over the same data. No form verifies over other data: an application that acts on the verdict alone is not affected; one that compares, hashes or stores a signature's bytes is.

0.8.6 refuses each form as Error::InvalidSignature. A signature's bytes are still not unique after the patch: the same signature with S replaced by n - S verifies, so an application that keys on the bytes also requires Signature::is_low_s().

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

Affected packages

crates.io / bsv-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.8.6
Introduced
0.9.0-beta.1
Fixed
0.9.0-beta.7.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "bsv_rs::auth::Certificate::verify",
            "bsv_rs::auth::VerifiableCertificate::verify",
            "bsv_rs::auth::utils::validate_certificate_encoding",
            "bsv_rs::compat::bsm::verify_message_der",
            "bsv_rs::kvstore::KVStoreInterpreter::verify_signature",
            "bsv_rs::messages::verify",
            "bsv_rs::primitives::bsv::TransactionSignature::from_checksig_format",
            "bsv_rs::primitives::ec::Signature::from_der",
            "bsv_rs::wallet::ProtoWallet::verify_signature"
        ],
        "os": []
    }
}

Database specific

categories
[
    "crypto-failure"
]
cvss
"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0499.json"