CVE-2021-45457
Overly broad CORS configuration
Also known as GHSA-mgpf-hhgf-cxg4
Mitigation
- Upgrade org.apache.kylin:kylin to one of 3.1.3, 4.0.1 (or later in the same release line).
- Vendor workaround: Kylin reflects the `Origin` header and allow credentials to be sent cross-origin in the default configuration. The preflight OPTIONS request:
- ```
- OPTIONS /kylin/api/projects HTTP/1.1
- Host: localhost:7070
- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
- Accept: */*
- Accept-Language: en-US
- Accept-Encoding: gzip, deflate
- Access-Control-Request-Method: POST
- Access-Control-Request-Headers: content-type
- Referer: http://b49b-95-62-58-48.ngrok.io/
- Origin: http://b49b-95-62-58-48.ngrok.io
- Connection: keep-alive
- Cache-Control: max-age=0
- ```
- Will be replied with:
- ```
- HTTP/1.1 200 OK
- Server: Apache-Coyote/1.1
- Access-Control-Allow-Origin: http://b49b-95-62-58-48.ngrok.io
- Access-Control-Allow-Credentials: true
- Vary: Origin
- Access-Control-Allow-Methods: DELETE, POST, GET, OPTIONS, PUT
- Access-Control-Allow-Headers: Authorization, Origin, No-Cache, X-Requested-With, Cache-Control, Accept, X-E4m-With, If-Modified-Since, Pragma, Last-Modified, Expires, Content-Type
- Content-Length: 0
- ```
- Users of Kylin 2.x & Kylin 3.x should upgrade to 3.1.3 or apply patch https://github.com/apache/kylin/pull/1782.
- Users of Kylin 4.x should upgrade to 4.0.1 or apply patch https://github.com/apache/kylin/pull/1781.
Who should check
- Projects that depend on Maven package org.apache.kylin:kylin (< 3.1.3)
- Anyone running Apache Software Foundation Apache Kylin >= Apache Kylin 2, <= 2.6.6; >= Apache Kylin 3, <= 3.1.2; >= Apache Kylin 4, <= 4.0.0
Vulnerability facts
- Affected
- org.apache.kylin:kylin < 3.1.3
- Fixed in
- 3.1.3, 4.0.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 2.46% chance of exploitation in 30 days (percentile 85, 2026-11-26)
- CWE
- CWE-863
- Modified
Description
In Apache Kylin, Cross-origin requests with credentials are allowed to be sent from any origin. This issue affects Apache Kylin 2 version 2.6.6 and prior versions; Apache Kylin 3 version 3.1.2 and prior versions; Apache Kylin 4 version 4.0.0 and prior versions.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.kylin:kylin | < 3.1.3 | 3.1.3, 4.0.1 | osv |
| Apache Software Foundation Apache Kylin | >= Apache Kylin 2, <= 2.6.6; >= Apache Kylin 3, <= 3.1.2; >= Apache Kylin 4, <= 4.0.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-45457. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-45457.md Affected: org.apache.kylin:kylin < 3.1.3 Fixed in: 3.1.3, 4.0.1 Steps: 1. Search this machine and project for org.apache.kylin:kylin (Maven), Apache Software Foundation Apache Kylin: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2021-45457 being exploited?
There is no confirmed exploitation: CVE-2021-45457 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-45457?
High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2021-45457?
org.apache.kylin:kylin < 3.1.3.
Is there a fix for CVE-2021-45457?
Yes. Fixed in 3.1.3, 4.0.1. Upgrade org.apache.kylin:kylin to one of 3.1.3, 4.0.1 (or later in the same release line). Vendor workaround: Kylin reflects the `Origin` header and allow credentials to be sent cross-origin in the default configuration. The preflight OPTIONS request: ``` OPTIONS /kylin/api/projects HTTP/1.1 Host: localhost:7070 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0 Accept: */* Accept-Language: en-US Accept-Encoding: gzip, deflate Access-Control-Request-Method: POST Access-Control-Request-Headers: content-type Referer: http://b49b-95-62-58-48.ngrok.io/ Origin: http://b49b-95-62-58-48.ngrok.io Connection: keep-alive Cache-Control: max-age=0 ``` Will be replied with: ``` HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Access-Control-Allow-Origin: http://b49b-95-62-58-48.ngrok.io Access-Control-Allow-Credentials: true Vary: Origin Access-Control-Allow-Methods: DELETE, POST, GET, OPTIONS, PUT Access-Control-Allow-Headers: Authorization, Origin, No-Cache, X-Requested-With, Cache-Control, Accept, X-E4m-With, If-Modified-Since, Pragma, Last-Modified, Expires, Content-Type Content-Length: 0 ``` Users of Kylin 2.x & Kylin 3.x should upgrade to 3.1.3 or apply patch https://github.com/apache/kylin/pull/1782. Users of Kylin 4.x should upgrade to 4.0.1 or apply patch https://github.com/apache/kylin/pull/1781.
How do I check if I'm affected by CVE-2021-45457?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.