Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-32877: Yii 2 is a PHP application framework

22
Routine
MEDIUM 4.2DOWNGRADE

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

Yii 2 is a PHP application framework. During internal penetration testing of a product based on Yii2, users discovered a Cross-site Scripting (XSS) vulnerability within the framework itself. This issue is relevant for the latest version of Yii2 (2.0.49.3). This issue lies in the mechanism for displaying function argument values in the stack trace. The vulnerability manifests when an argument's value exceeds 32 characters. For convenience, argumen

Why this priority

  • No elevated risk signals yet

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score4.2 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionRequired
EPSS exploit chance0.3% (top 72%)
CISA exploited listNo
WeaknessCWE-79
Published2024-05-30
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · 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.49.3
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.0.49.3
1. Check installed version
apt-cache policy yii || rpm -q yii || yii --version
2. No fixed release: DOWNGRADE to a release before 2.0.49.3 (Debian / Ubuntu)
apt-cache madison yii sudo apt install yii=<VERSION_BEFORE_2.0.49.3> 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.49.3> 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.
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-32877?

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

Is CVE-2024-32877 being exploited?

CVE-2024-32877 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-32877 affect?

CVE-2024-32877 affects yii. Severity is medium (CVSS 4.2). Yii 2 is a PHP application framework. During internal penetration testing of a product based on Yii2, users discovered a Cross-site Scripting (XSS) vulnerability within the framework itself. This issue is relevant for the latest version of

How urgent is CVE-2024-32877?

Priority 22/100. No elevated risk signals yet.

Software pages

PHP vulnerabilities

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.