{"id":"CVE-2021-45457","published":"2022-01-06T12:35:22Z","modified":"2024-08-04T04:39:21Z","title":"Overly broad CORS configuration","vendor":"Apache","product":"Apache Kylin","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02462,"percentile":0.84844,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread/rzv4mq58okwj1n88lry82ol2wwm57q1m","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/06/2","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":16.97}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Kylin","versions":[">= Apache Kylin 2, <= 2.6.6",">= Apache Kylin 3, <= 3.1.2",">= Apache Kylin 4, <= 4.0.0"]}],"workarounds":{"items":["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…"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.kylin:kylin","vulnerableRanges":["<3.1.3",">=4.0.0, <4.0.1"],"patched":["3.1.3","4.0.1"],"from":["GHSA-mgpf-hhgf-cxg4"],"provenance":"source"}],"summary":{"text":"The flaw is an overly broad CORS configuration in the Apache Kylin product, affecting Apache Kylin 2 up to and including 2.6.6, Apache Kylin 3 up to and including 3.1.2, and Apache Kylin 4 up to and including 4.0.0. Because cross-origin requests carrying credentials are accepted from any origin, a malicious web page could cause a victim's browser to send authenticated requests to Kylin.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:43Z"},"euvd":{"id":"EUVD-2022-0646","exploited":false,"provenance":"source"}}