CVE-2024-27932: Deno's improper suffix match testing for DENO_AUTH_TOKENS
4.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6268%
CWE
Published
3/6/2024
Updated
3/21/2024
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| deno | rust | >= 1.8.0, < 1.40.4 | 1.40.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from the hostname matching logic in AuthTokens::get, which used hostname.to_lowercase().ends_with(&t.host). This allowed suffix matches without proper domain boundary validation. The commit diff shows this logic was replaced with AuthDomain::matches that adds proper domain validation, confirming the original function's vulnerability.