CVE-2024-27302

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 retrieve data on behalf of other users. Version 1.4.4 fixes this issue.

Category

9.1
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 0.03%
Affected: zeromicro go-zero
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-27302?
CVE-2024-27302 has been scored as a critical severity vulnerability.
How to fix CVE-2024-27302?
To fix CVE-2024-27302, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-27302 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-27302 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-27302?
CVE-2024-27302 affects zeromicro go-zero.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.