# CVE-2024-27302: Authorization Bypass Through User-Controlled Key in go-zero

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-04T20:42:33.000Z
- Modified: 2026-09-10T03:50:10.507Z
- Also known as: GHSA-fgxv-gw55-r5fq, GO-2024-2604
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zeromicro go-zero: < 1.4.4; before 1.4.4
- github.com/zeromicro/go-zero (Go): before 1.4.4
- go-zero go-zero: before 1.4.4

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq> (exploit, advisory, vendor-advisory, web)
- <https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27302> (advisory)
- <https://github.com/zeromicro/go-zero> (package)

## Sources

- CVE List: [CVE-2024-27302](https://www.cve.org/CVERecord?id=CVE-2024-27302), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-fgxv-gw55-r5fq](https://github.com/advisories/GHSA-fgxv-gw55-r5fq), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2604](https://pkg.go.dev/vuln/GO-2024-2604), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-27302](https://nvd.nist.gov/vuln/detail/CVE-2024-27302), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27302 · Whole record: https://cve.day/CVE-2024-27302.json · Rebuilt by cve.day 2026-11-25T22:58:37.309Z
