CVE-2024-27302
published critical CVSS 3.1 · 9.1Authorization Bypass Through User-Controlled Key in go-zero
Package status and fixes
Description
go-zero is a web and rpc framework. Go-zero allows user to specify a CORS Filter with a configurable allows param - which is an array of domains allowed in CORS policy. However, the `isOriginAllowed` uses `strings.HasSuffix` to check the origin, which leads to bypass via a malicious domain. This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and/or retrieve data on behalf of other users. Version 1.4.4 fixes this issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zeromicro | go-zero | < 1.4.4 (affected) | GitHub_M · cna |
| zeromicro | go-zero | 0 to < 1.4.4 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key
References
2Provider assertions
3GitHub_M · cna
Authorization Bypass Through User-Controlled Key in go-zero
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8a2ac0a6b1686916fd73e7017ab603499e2fb9ce60f0388b6b35de6f58df5436
- Ingested
- 23 Sep 2026, 08:20:47 UTC
- Source record
- Official CVE record