{"id":"CVE-2024-27302","aliases":["GHSA-fgxv-gw55-r5fq","GO-2024-2604"],"url":"https://o3.security/vulnerability/CVE-2024-27302","summary":"Authorization Bypass Through User-Controlled Key in go-zero","details":"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.\n","published":"2024-03-06T18:31:31.309Z","modified":"2026-07-15T01:49:09.113878202Z","cvss":{"score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/zeromicro/go-zero","fixedVersion":"1.4.4"}],"fix":{"url":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db","label":"zeromicro/go-zero@d9d79e9"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27302.json"},{"type":"ADVISORY","url":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27302"},{"type":"FIX","url":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:09.113878202Z"}}