CVE-2024-41657 json
GHSL-2024-035: Casdoor CORS misconfiguration
published 2024-08-20 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2615 , GHSA-mchx-7j67-8mcf , GO-2024-3087
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/casdoor/casdoor | <=1.557.0 all versions |
no fix listed |
Affected products
- casdoor casdoor
- casbin casdoor
Classification
References
-
securitylab.github.com
/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/
exploit, third-party-advisory
-
github.com
/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-41657
advisory
-
github.com
/casdoor/casdoor
package
-
securitylab.github.com
/advisories/GHSL-2024-035_GHSL-2024-036_casdoor
advisory
-
github.com
/advisories/GHSA-mchx-7j67-8mcf
advisory
Sources
- CVE List CVE-2024-41657
- GitHub Advisory GHSA-mchx-7j67-8mcf
- NVD CVE-2024-41657
- OSV GO-2024-3087
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.