SecurityContext

CVE-2024-4990: yiisoft/yii2 - Insecure Deserialization

  • Cve: CVE-2024-4990
  • Name: yiisoft/yii2 - Insecure Deserialization
  • Description: In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic method does not validate that the value passed is a valid Behavior class name or configuration. This allows an attacker to instantiate arbitrary classes, passing parameters to their constructors and invoking setter methods. Depending on the installed dependencies, various types of attacks are possible, including the execution of arbitrary code, retrieval of sensitive information, and unauthorized access.
  • Impact: Attackers can instantiate arbitrary classes, execute code, or access sensitive information, leading to severe security breaches.
  • Remediation: Update to the latest version of yiisoft/yii2 where this issue is fixed or apply security patches provided by the vendor.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Epss score: 0.80097
  • Epss percentile: 0.99623
  • Assignee: [email protected]
  • Published at: 2025-03-20T10:15:32Z
  • Age in days: 614
  • Modified at: 2026-06-17T08:03:20Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-4990
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-470Use of Externally-Controlled Input to Select Classes or Code

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8fnvd2025-03-20

References

UrlSourceTags
https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8fnvdExploit

Products

ProductAffectedPlatform boundSourcesUrl
yiiframework:yii= 2.0.48nonvd/v1/products/yiiframework/yii

Projects

RepositoryLink kindsIndexedUrl
yiisoft/yii2commit, package, pull, security_advisoryyes/v1/repositories/yiisoft/yii2

Index

  • Repositories: 34
  • Repositories high signal: 16
  • Packages: 1

Exploitation

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