CVE-2018-20745Yiiframework Yii
Medium 5.9 No auth needed
Follow: this CVE · Yiiframework · Yiiframework Yii We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.0
- 5.9
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 39
- Auth required
- No
- Published
- Jan 28, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-346
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Yii.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | yiisoft/yii2 |
< 2.0.16 |
2.0.16 |
composer require "yiisoft/yii2:^2.0.16" |
Per OSV / GitHub Advisories (GHSA-cr6r-6xm9-ww22). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yiiframework | yii | ≥ 2.0 ≤ 2.0.15.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Third Party Advisory
- www.usenix.org Third Party Advisory