Rust advisories / svix
Vulnerability MediumRUSTSEC-2024-0010 · svix
RUSTSEC-2024-0010: Improper comparison of different-length signatures
Short answerA security vulnerability in the svix crate: Improper comparison of different-length signatures. GitHub rates it Medium. Fixed in 1.17.0: update to a fixed version.
| Crate | svix |
|---|---|
| Type | Vulnerability (crypto-failure) |
| Affected versions | Before 1.17.0. |
| Fixed in | 1.17.0 |
| Severity | Medium (GitHub rating) |
| Published | 2024-02-06 |
| Last changed | 2024-02-15 |
| Also known as | CVE-2024-21491, GHSA-747x-5m58-mq97, GHSA-w277-wpqf-rcfv |
| Affected functions | svix::webhooks::Webhook::verify |
What to do
- See which version you have:
cargo tree -i svix(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p svix. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplesvix = "1.17.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
The Webhook::verify function incorrectly compared signatures of different lengths - the two signatures would only be compared up to the length of the shorter signature. This allowed an attacker to pass in v1, as the signature, which would always pass verification.
References
- Package: crates.io/crates/svix
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0010.html
- Web: github.com/svix/svix-webhooks/pull/1190
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?