CVE-2024-32877: Yii 2 is a PHP application framework
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 score | 4.2 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 72%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2024-05-30 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
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
Related CVEs
- CVE-2025-32027 MEDIUM 6.1 UPGRADE Yii is an open source PHP web framework
- CVE-2025-2690 MEDIUM 6.3 UPGRADE A vulnerability, which was classified as critical, was found in yiisoft Yii2 up to 2.0.39
- CVE-2025-2689 MEDIUM 6.3 UPGRADE A vulnerability, which was classified as critical, has been found in yiisoft Yii2 up to 2.0.45
- CVE-2024-58136 CRITICAL 9.0 EXPLOITED UPGRADE Yiiframework Yii Improper Protection of Alternate Path Vulnerability
- CVE-2024-4990 CRITICAL 9.1 DOWNGRADE In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic me