Authorization Bypass Through User-Controlled Key in go-zero
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-639.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| zeromicro | go-zero | before 1.4.4 | 1.4.4 | Patch available | CNA |
| — | github.com/zeromicro/go-zero (Go) | before 1.4.4 | 1.4.4 | Patch available | GHSA-fgxv-gw55-r5fq |
- go-zero Vendorzeromicro Affected before 1.4.4 Fixed in 1.4.4 Patch available CNA
- github.com/zeromicro/go-zero (Go) Vendor— Affected before 1.4.4 Fixed in 1.4.4 Patch available GHSA-fgxv-gw55-r5fq
Remediation
- Fix · CNA go-zero (zeromicro) Fixed in 1.4.4
- Fix · GHSA-fgxv-gw55-r5fq github.com/zeromicro/go-zero (Go) Fixed in 1.4.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-27302
- 2026-10-03 Alias added: GHSA-fgxv-gw55-r5fq
References
Sources
- CVE-2024-27302 · CVE Program
- CVE-2024-27302 · NVD
- FIRST EPSS
- GHSA-fgxv-gw55-r5fq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences