{"id":"EUVD-2024-0918","enisaUuid":"f9942072-f2cb-3122-bbbc-30feeb09b1a5","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.\n","datePublished":"Mar 6, 2024, 6:31:31 PM","dateUpdated":"Aug 5, 2024, 8:09:47 PM","baseScore":9.1,"baseScoreVersion":"3.1","baseScoreVector":"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\nhttps://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db\n","aliases":"CVE-2024-27302\nGHSA-fgxv-gw55-r5fq\n","assigner":"GitHub_M","epss":0.77,"enisaIdProduct":[{"id":"d402a92e-ef94-3416-a593-c2c594eb7a07","product":{"name":"go-zero","vendor":{"name":"zeromicro"}},"product_version":"\u003c 1.4.4"}],"enisaIdVendor":[{"id":"c62540c6-0f94-3213-acdc-75c7d820aa5f","vendor":{"name":"zeromicro"}}],"enisaIdVulnerability":[{"id":"b176e622-3257-338b-a706-195142769d56","vulnerability":{"id":"CVE-2024-27302","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.\n","datePublished":"Mar 6, 2024, 6:31:31 PM","dateUpdated":"Aug 5, 2024, 8:09:47 PM","status":"PUBLISHED","baseScore":9.1,"baseScoreVersion":"3.1","baseScoreVector":"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\nhttps://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db\n","enisa_id":"EUVD-2024-0918\n","assigner":"GitHub_M","epss":0.77,"dataProcessed":"Nov 16, 2026, 7:17:25 AM","vulnerabilityProduct":[{"id":"628fac91-6616-3478-b938-f9b3ca87d238","product":{"name":"go-zero","vendor":{"name":"zeromicro"}},"product_version":"\u003c 1.4.4"}],"vulnerabilityVendor":[{"id":"ccfbad76-ce75-32ca-a900-21537511c987","vendor":{"name":"zeromicro"}}]}},{"id":"c88403c0-1c60-3eb4-b5e9-01a1b0591025","vulnerability":{"id":"GHSA-fgxv-gw55-r5fq","description":"Authorization Bypass Through User-Controlled Key in go-zero","datePublished":"Mar 4, 2024, 8:42:33 PM","dateUpdated":"Mar 12, 2024, 3:16:05 PM","baseScore":null,"references":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-27302\nhttps://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db\nhttps://github.com/zeromicro/go-zero\n","enisa_id":"EUVD-2024-0918\n","aliases":"GHSA-fgxv-gw55-r5fq\nCVE-2024-27302\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:35:59 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}