Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-4990: In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic me

67
This week
CRITICAL 9.1REMOTEDOWNGRADE

CVE-2024-4990 is a critical-severity flaw (CVSS 9.1) affecting yii. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 c

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.1 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance80.1% (top 1%)
CISA exploited listNo
WeaknessCWE-470
Published2025-03-20
Last modified2026-06-17
Publisher (CNA): huntr.dev · Vendor: yiiframework

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

yiiframework yii DOWNGRADE
Affected: 2.0.48
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.0.48
1. Check installed version
apt-cache policy yii || rpm -q yii || yii --version
2. No fixed release: DOWNGRADE to a release before 2.0.48 (Debian / Ubuntu)
apt-cache madison yii sudo apt install yii=<VERSION_BEFORE_2.0.48> sudo apt-mark hold yii
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list yii sudo dnf downgrade yii-<VERSION_BEFORE_2.0.48> sudo dnf versionlock add yii
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Composer (PHP) · yiisoft/yii2 · FIXED · 2.0.49.4 · vulnerable: < 2.0.49.4 · source
composer require "yiisoft/yii2:>=2.0.49.4"
Fedora ELN · ibus-typing-booster · FIXED · 2.31.3-1.eln159 · FEDORA-2026-c895c68d60 · source
sudo dnf upgrade --advisory=FEDORA-2026-c895c68d60
Fedora 46 · perl-WWW-OrangeHRM-Client · FIXED · 0.12.0-21.fc46 · FEDORA-2026-2d14efca09 · source
sudo dnf upgrade --advisory=FEDORA-2026-2d14efca09
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-4990?

yii: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2024-4990 being exploited?

CVE-2024-4990 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-4990 affect?

CVE-2024-4990 affects yii. Severity is critical (CVSS 9.1). 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 instantia

How urgent is CVE-2024-4990?

Priority 67/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.