{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-27302","id":"CVE-2024-27302","title":"Authorization Bypass Through User-Controlled Key in go-zero","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 ret","descriptionLong":"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","updated":"2026-10-28T02:31:12.686207193Z","reserved":"2024-02-22T18:08:38.875Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"github.com"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub"}],"rating":"critical","products":["zeromicro go-zero"],"affectedProducts":[{"vendor":"zeromicro","product":"go-zero","defaultStatus":null,"versions":[{"version":"< 1.4.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/zeromicro/go-zero","purl":"pkg:golang/github.com/zeromicro/go-zero","ranges":["<1.4.4"],"fixed":["1.4.4"],"advisory":"GHSA-fgxv-gw55-r5fq"}],"cwes":["CWE-639"],"aliases":["GHSA-fgxv-gw55-r5fq","GO-2024-2604"],"references":[{"url":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27302.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27302","tags":["advisory"]},{"url":"https://github.com/zeromicro/go-zero","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.00774,"epssPercentile":0.56664,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-27302","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27302","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-27302","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fgxv-gw55-r5fq","ok":true,"note":"GHSA-fgxv-gw55-r5fq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-27302","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}