Live threats

All CVEs / Yiiframework

CVE-2018-20745Yiiframework Yii

Medium 5.9 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yii.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
yiiframeworkyii≥ 2.0 ≤ 2.0.15.1

Official sources

References

Links published by the sources. Open them with care.