CVE-2024-4990

Source
https://cve.org/CVERecord?id=CVE-2024-4990
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4990.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-4990
Aliases
Published
2025-03-20T10:11:14.988Z
Modified
2026-07-15T01:49:01.269347251Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Unsafe Reflection in base Component class in yiisoft/yii2
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4990.json",
    "cwe_ids": [
        "CWE-470"
    ],
    "cna_assigner": "@huntr_ai"
}
References

Affected packages

Git / github.com/yiisoft/yii2

Affected ranges

Type
GIT
Repo
https://github.com/yiisoft/yii2
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "2.0.48"
        },
        {
            "last_affected": "2.0.48"
        }
    ],
    "source": "CPE_STRING",
    "cpe": "cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*"
}

Affected versions

2.*
2.0.48

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4990.json"