CVE-2024-27302 json
Authorization Bypass Through User-Controlled Key in go-zero
published 2y ago modified 2mo ago also GHSA-fgxv-gw55-r5fq , GO-2024-2604 , EUVD-2024-0918
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/zeromicro/go-zero 1.4.4
- zeromicro go-zero 1.4.4
Is CVE-2024-27302 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.77% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/zeromicro/go-zero | <1.4.4 |
1.4.4 |
Affected products
- zeromicro go-zero
Classification
- Weakness
-
- CWE-639 Authorization Bypass Through User-Controlled Key
References
-
github.com
/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db
web, patch
-
github.com
/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq
web, exploit, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-27302
advisory
-
github.com
/zeromicro/go-zero
package
Sources
- CVE List CVE-2024-27302
- GitHub Advisory GHSA-fgxv-gw55-r5fq
- NVD CVE-2024-27302
- OSV GO-2024-2604
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.