5.9medium
svix vulnerable to Authentication Bypass
- Severity
- 5.9medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-747x-5m58-mq97GHSA-w277-wpqf-rcfvRUSTSEC-2024-0010
Description
Versions of the package svix before 1.17.0 are vulnerable to Authentication Bypass due to an issue in the verify function where signatures of different lengths are incorrectly compared. An attacker can bypass signature verification by providing a shorter signature that matches the beginning of the actual signature. **Note:** The attacker would need to know a victim uses the Rust library for verification,no easy way to automatically check that; and uses webhooks by a service that uses Svix, and then figure out a way to craft a malicious payload that will actually include all of the correct identifiers needed to trick the receivers to cause actual issues.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| svix | before 1.17.0 | CVE List |
| svix (crates.io) | before 1.17.0, from 0.0.0-0 before 1.17.0 | GitHub Advisory Database, RustSec Advisory Database |
| svix svix-webhooks | before 1.17.0 | NVD |
All scores
| snyk | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | medium rating | |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Classification
What each source says
CVE List
Versions of the package svix before 1.17.0 are vulnerable to Authentication Bypass due to an issue in the verify function where signatures of different lengths are incorrectly compared. An attacker can bypass signature verification by providing a shorter signature that matches the beginning of the actual signature. **Note:** The attacker would need to know a victim uses the Rust library for verification,no easy way to automatically check that; and uses webhooks by a service that uses Svix, and then figure out a way to craft a malicious payload that will actually include all of the correct identifiers needed to trick the receivers to cause actual issues.
GitHub Advisory Database
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-747x-5m58-mq97. This link is maintained to preserve external references.
Original Description
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.
RustSec Advisory Database
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.
NVD (es)
Las versiones del paquete svix anteriores a la 1.17.0 son vulnerables a la omisión de autenticación debido a un problema en la función de verificación donde las firmas de diferentes longitudes se comparan incorrectamente. Un atacante puede eludir la verificación de firma proporcionando una firma más corta que coincida con el comienzo de la firma real. **Nota:** El atacante necesitaría saber que la víctima usa la librería Rust para la verificación, no hay una manera fácil de verificarlo automáticamente; y utiliza webhooks de un servicio que utiliza Svix, y luego encuentra una manera de crear una carga útil maliciosa que en realidad incluirá todos los identificadores correctos necesarios para engañar a los receptores y causar problemas reales.
References
| https://security.snyk.io/vuln/SNYK-RUST-SVIX-6230729 | third-party-advisory, web | |
| https://github.com/svix/svix-webhooks/pull/1190 | patch, web | |
| https://github.com/svix/svix-webhooks/commit/958821bd3b956d1436af65f70a0964d4ffb7daf6 | patch, web | |
| https://rustsec.org/advisories/RUSTSEC-2024-0010.html | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-21491 | advisory | |
| https://github.com/svix/svix-webhooks | package | |
| https://crates.io/crates/svix | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21491 changed 2025-05-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-747x-5m58-mq97 changed 2024-10-16 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-w277-wpqf-rcfv changed 2026-02-03 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0010 changed 2024-02-15 | CC0-1.0 |
| NVD | CVE-2024-21491 changed 2026-06-17 | Public domain |