CVE-2024-27302Go-zero
Critical 9.1 No auth needed
Follow: this CVE · Go-zero · Go-zero We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 56
- Auth required
- No
- Published
- Mar 6, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-639
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Go-zero.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/zeromicro/go-zero |
< 1.4.4 |
1.4.4 |
go get github.com/zeromicro/go-zero@v1.4.4 |
| Go | github.com/zeromicro/go-zero |
< 1.4.4 |
1.4.4 |
go get github.com/zeromicro/go-zero@v1.4.4 |
Per OSV / GitHub Advisories (GHSA-fgxv-gw55-r5fq, GO-2024-2604). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-zero | go-zero | < 1.4.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory