id: CVE-2024-56145 info: name: "Craftcms - Code Injection" author: vedas-arpsyndicate severity: critical description: | Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected versions are affected by this vulnerability if their php.ini configuration has `register_argc_argv` enabled. reference: - https://www.exploit.observer/?keyword=CVE-2024-56145&match=exact - https://subdomain.center/?engine=ammonites&keyword=craftcms&match=exact classification: cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N cvss-score: 9.3 cve-id: CVE-2024-56145 cwe-id: CWE-94 metadata: verified: false tags: cve,cve2024,rce,craftcms,ssti,kev,vkev,vuln variables: nonce: "{{rand_int(1000000000,9999999999)}}" http: - raw: - | GET ?--configPath=/ztxeqv_test/{{nonce}} HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: word part: body words: - '{{nonce}}' - 'mkdir()' - 'Permission denied' - 'No such file or directory' condition: and - type: status status: - 503