SecurityContext

CVE-2018-20745: Yii 2.x - CORS Misconfiguration

  • Cve: CVE-2018-20745
  • Name: Yii 2.x - CORS Misconfiguration
  • Description: 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.
  • Impact: Attackers can bypass same-origin policy, potentially leading to data theft or malicious interactions with trusted sites.
  • Remediation: Update to the latest version of Yii 2.x where this issue is fixed.
  • Vulnerability type: cors_misconfiguration
  • Vulnerability impact: information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs to send crafted Origin header
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.9
  • Cvss vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00544
  • Epss percentile: 0.46573
  • Assignee: [email protected]
  • Published at: 2019-01-28T08:29:00Z
  • Age in days: 2857
  • Modified at: 2026-06-17T01:53:23Z
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-20745
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-346Origin Validation Error

References

UrlSourceTags
https://github.com/yiisoft/yii2/issues/16193nvdIssue Tracking, Third Party Advisory
https://www.usenix.org/system/files/conference/usenixsecurity18/sec18-chen.pdfnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
yiiframework:yii>= 2.0, <= 2.0.15.1nonvd/v1/products/yiiframework/yii

Projects

RepositoryLink kindsIndexedUrl
yiisoft/yii2issues, pullyes/v1/repositories/yiisoft/yii2

Index

  • Repositories: 31
  • Repositories high signal: 15
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts