GHSA-w277-wpqf-rcfv

Suggest an improvement
Source
https://github.com/advisories/GHSA-w277-wpqf-rcfv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-w277-wpqf-rcfv/GHSA-w277-wpqf-rcfv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w277-wpqf-rcfv
Aliases
Published
2024-02-06T20:30:14Z
Modified
2024-02-15T01:26:41.857241Z
Summary
Svix vulnerable to improper comparison of different-length signatures
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-06T20:30:14Z"
}
References

Affected packages

crates.io / svix

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.0

Ecosystem specific

{
    "affected_functions": [
        "svix::webhooks::Webhook::verify"
    ]
}