# CVE-2024-41657: GHSL-2024-035: Casdoor CORS misconfiguration

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-20T20:11:29.788Z
- Modified: 2026-06-17T07:47:59.843Z
- Also known as: GHSA-mchx-7j67-8mcf, GO-2024-3087
- Weaknesses: CWE-697, CWE-942
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Casdoor is a UI-first Identity and Access Management (IAM) / Single-Sign-On (SSO) platform. In Casdoor 1.577.0 and earlier, a logic vulnerability exists in the beego filter CorsFilter that allows any website to make cross domain requests to Casdoor as the logged in user. Due to the a logic error in checking only for a prefix when authenticating the Origin header, any domain can create a valid subdomain with a valid subdomain prefix (Ex: localhost.example.com), allowing the website to make requests to Casdoor as the current signed-in user.

(As written by CVE List.)

## Affected

- casdoor casdoor: <= 1.577.0
- casbin casdoor: up to 1.577.0
- github.com/casdoor/casdoor (Go): up to 1.557.0; all versions

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/> (exploit, third-party-advisory)
- <https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41657> (advisory)
- <https://github.com/casdoor/casdoor> (package)
- <https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor> (advisory)
- <https://github.com/advisories/GHSA-mchx-7j67-8mcf> (advisory)

## Sources

- CVE List: [CVE-2024-41657](https://www.cve.org/CVERecord?id=CVE-2024-41657), CVE Terms of Use, modified 2024-08-20
- GitHub Advisory Database: [GHSA-mchx-7j67-8mcf](https://github.com/advisories/GHSA-mchx-7j67-8mcf), CC-BY-4.0, modified 2024-08-30
- Go Vulnerability Database: [GO-2024-3087](https://pkg.go.dev/vuln/GO-2024-3087), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-41657](https://nvd.nist.gov/vuln/detail/CVE-2024-41657), Public domain, modified 2026-06-17

---

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