{"id":"RUSTSEC-2026-0499","aliases":["GHSA-9c8r-76f3-m426"],"title":"Signature::from_der reads a signature with bytes after it, a wrong sequence length or an unneeded zero as the signature","titleSource":"OSV","descriptionSource":"OSV","description":"`Signature::from_der` read a DER-encoded ECDSA signature leniently. It read as\nthe signature: the signature followed by other bytes; a sequence length\nshorter than its contents, or longer with bytes after them (a length byte with\nits high bit set among them); and an R or S preceded by a zero byte it did not\nneed. It read a lone-zero R or S as zero.\n\n`messages::verify`, `compat::bsm::verify_message_der`,\n`auth::Certificate::verify`, `auth::VerifiableCertificate::verify`,\n`wallet::ProtoWallet::verify_signature` and\n`kvstore::KVStoreInterpreter::verify_signature` read through it, and each\nverified such a form of a valid signature. Given one signature a key holder\nmade, anyone could produce other byte strings that verify as that signature\nover the same data. No form verifies over other data: an application that acts\non the verdict alone is not affected; one that compares, hashes or stores a\nsignature's bytes is.\n\n0.8.6 refuses each form as `Error::InvalidSignature`. A signature's bytes are\nstill not unique after the patch: the same signature with S replaced by n - S\nverifies, so an application that keys on the bytes also requires\n`Signature::is_low_s()`.","severity":"medium","score":5.3,"published":"2026-11-11T12:00:00.000Z","modified":"2026-11-12T08:00:03.174Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"bsv-rs","sources":[{"name":"OSV · RUSTSEC-2026-0499","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0499"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.8.6"},{"introduced":"0.9.0-beta.1"},{"fixed":"0.9.0-beta.7.0"}],"type":"SEMVER"}],"versions":[],"fixed":["0.8.6","0.9.0-beta.7.0"]}],"sourceAffected":[],"references":["https://crates.io/crates/bsv-rs","https://rustsec.org/advisories/RUSTSEC-2026-0499.html","https://github.com/Calhooon/bsv-rs/blob/v0.8.6/CHANGELOG.md","https://github.com/Calhooon/bsv-rs/issues/842","https://github.com/Calhooon/bsv-rs/pull/846"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0499","modified":"2026-11-12T08:00:03.174055285Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0499"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3}],"products":[],"remediation":[],"observedAt":"2026-11-12T13:57:41.561Z","kev":{"status":"unavailable","checkedAt":"2026-11-29T00:30:31.227Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}