{
  "crds_version": "0.1",
  "kind": "base",
  "id": "crds:cve-2024-58136",
  "revision": 1,
  "title": "Yii 2 — attacker-controlled class key attaches behaviour",
  "summary": "Yii 2 before 2.0.52 mishandles a class key in request data when attaching behaviour, which a remote attacker turns into running code. It is a regression of an earlier fix and reaches products built on Yii, Craft among them.",
  "source_type": "cve",
  "severity": "critical",
  "cvss": {
    "score": 9.8,
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "version": "3.1"
  },
  "epss": 0.87757,
  "exploitation": {
    "known_exploited": true,
    "exploit_available": true,
    "attack_complexity": "low",
    "kev_added": "2025-05-02",
    "prerequisites": "Network access to an application built on the affected framework version."
  },
  "remediation": {
    "patch_available": true,
    "fixed_in": [
      "Yii 2.0.52"
    ]
  },
  "kill_chain": "initial_access",
  "recommended_action": "Upgrade Yii to 2.0.52 or later now, and check any framework built on it for its own advisory; exploitation ran from February to April 2025.",
  "confidence": "high",
  "provenance": [
    {
      "fields": [
        "cvss",
        "exploitation.attack_complexity",
        "exploitation.exploit_available",
        "references",
        "published_at"
      ],
      "source": "https://nvd.nist.gov/vuln/detail/CVE-2024-58136",
      "retrieved_at": "2026-09-24T12:03:01.274Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "exploitation.known_exploited",
        "exploitation.kev_added"
      ],
      "source": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "retrieved_at": "2026-09-24T12:03:01.274Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "epss"
      ],
      "source": "https://api.first.org/data/v1/epss?cve=CVE-2024-58136",
      "retrieved_at": "2026-09-24T12:03:01.274Z",
      "confidence": "high",
      "extractor": "scrty-crds-pipeline/0.1"
    },
    {
      "fields": [
        "title",
        "summary",
        "severity",
        "remediation",
        "mitre_attack",
        "kill_chain",
        "recommended_action",
        "confidence",
        "tags",
        "exploitation.prerequisites"
      ],
      "source": "https://nvd.nist.gov/vuln/detail/CVE-2024-58136",
      "retrieved_at": "2026-09-24T12:03:01.274Z",
      "confidence": "high",
      "extractor": "claude-code"
    }
  ],
  "references": [
    {
      "type": "cve",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58136",
      "label": "NVD record"
    },
    {
      "type": "cisa",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "label": "CISA Known Exploited Vulnerabilities catalog"
    },
    {
      "type": "vendor_advisory",
      "url": "https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12"
    },
    {
      "type": "vendor_advisory",
      "url": "https://github.com/yiisoft/yii2/pull/20232"
    },
    {
      "type": "vendor_advisory",
      "url": "https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52"
    }
  ],
  "published_at": "2025-04-10T03:15:17.767Z",
  "issued_at": "2026-09-24T12:03:01.274Z",
  "tags": [
    "yii",
    "php-framework",
    "code-injection",
    "supply-chain",
    "kev"
  ]
}
