CVE-2018-20745 json
Yii Incorrectly Implements CORS
published 2019-01-28 7 y ago modified 2026-06-17 4 mo ago also GHSA-cr6r-6xm9-ww22 , EUVD-2022-3621
- cvss
- 5.9
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
Yii 2.x through 2.0.15.1 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.
Patch / fix
Exploit prediction
0.54% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | yiisoft/yii2 | <2.0.16 |
2.0.16 |
Classification
- Weakness
-
- CWE-346 Origin Validation Error
References
-
github.com
/yiisoft/yii2/pull/16198
web
-
usenix.org
/system/files/conference/usenixsecurity18/sec18-chen.pdf
web, third-party-advisory
-
github.com
/yiisoft/yii2/issues/16193
web, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-20745
advisory
Sources
- CVE List CVE-2018-20745
- GitHub Advisory GHSA-cr6r-6xm9-ww22
- NVD CVE-2018-20745
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.