Skip to main content

CVE-2024-21491 — Vulnerability in svix — CVE Details

MEDIUM

svix vulnerable to Authentication Bypass

Published February 13, 2024Updated October 16, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.59%). Schedule for your next planned update.

Does your project use an affected svix version?

Paste your Cargo.lock to check it for CVE-2024-21491 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

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.

Advisory Timeline

  • First published February 13, 2024 (1017 days ago).
  • Last revised October 16, 2024 — 246 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update svix to 1.17.0 or later
cargo update -p svix --precise 1.17.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
svix crates.io · Affected: All versions1.17.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2024-21491?
svix vulnerable to Authentication Bypass. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.8/10).
How do I check if my project is affected by CVE-2024-21491?
CVE-2024-21491 affects svix. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-21491 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.8

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.59%
EPSS percentile: 42.2

This is a below-median EPSS score — only 42.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-747x-5m58-mq97
GHSA-w277-wpqf-rcfv
RUSTSEC-2024-0010

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock