{
  "id": "CVE-2024-56145",
  "url": "https://poc.griffinguard.io/cve/CVE-2024-56145",
  "published_at": "2024-12-18T20:37:34.301Z",
  "title": "RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms",
  "vendor": "craftcms",
  "product": "cms",
  "cvss": {
    "score": 9.3,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2025-06-02",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 166
  },
  "first_poc": {
    "created_at": "2024-12-20T03:34:01Z",
    "first_seen_at": "2026-11-14T10:26:36.149Z",
    "days_after_publication": 1.3,
    "repo": "Chocapikk/CVE-2024-56145",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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. For these users an unspecified remote code execution vector is present. Users are advised to update to version 3.9.14, 4.13.2, or 5.5.2. Users unable to upgrade should disable `register_argc_argv` to mitigate the issue.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 9.3
  },
  "repos": [
    {
      "repo": "Chocapikk/CVE-2024-56145",
      "url": "https://github.com/Chocapikk/CVE-2024-56145",
      "created_at": "2024-12-20T03:34:01Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z",
      "stars": 48,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-08-06T09:10:49Z"
    },
    {
      "repo": "Sachinart/CVE-2024-56145-craftcms-rce",
      "url": "https://github.com/Sachinart/CVE-2024-56145-craftcms-rce",
      "created_at": "2024-12-22T11:53:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-04-16T08:59:45Z"
    },
    {
      "repo": "hmhlol/craft-cms-RCE-CVE-2024-56145",
      "url": "https://github.com/hmhlol/craft-cms-RCE-CVE-2024-56145",
      "created_at": "2025-04-06T10:16:20Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2018-09-09T20:06:04Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "craftcms/cms",
        "ranges": [
          "\u003e= 5.0.0-RC1, \u003c 5.5.2"
        ],
        "fixed_in": [
          "5.5.2"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-2p6p-9rc9-62j9"
      },
      {
        "vendor": "",
        "product": "craftcms/cms",
        "ranges": [
          "\u003e= 4.0.0-RC1, \u003c 4.13.2"
        ],
        "fixed_in": [
          "4.13.2"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-2p6p-9rc9-62j9"
      },
      {
        "vendor": "",
        "product": "craftcms/cms",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.9.14"
        ],
        "fixed_in": [
          "3.9.14"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-2p6p-9rc9-62j9"
      }
    ],
    "upgrade": [
      "Upgrade craftcms/cms to 5.5.2 or later.",
      "Upgrade craftcms/cms to 4.13.2 or later.",
      "Upgrade craftcms/cms to 3.9.14 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/craftcms_ftp_template.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Craft CMS Twig Template Injection RCE via FTP Templates Path (exploit/linux/http/craftcms_ftp_template)",
      "published_at": "2024-12-29T02:56:47Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56145.yaml",
      "source": "nuclei",
      "title": "nuclei template: Craft CMS - Remote Code Execution via Template Path Manipulation",
      "published_at": "2024-12-29T16:51:28Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "query_markers": [
        "--configPath=/kishore"
      ],
      "protocol": "http",
      "repos": [
        "Sachinart/CVE-2024-56145-craftcms-rce"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Sachinart/CVE-2024-56145-craftcms-rce/poc.py:100",
        "Sachinart/CVE-2024-56145-craftcms-rce/poc.py:105"
      ]
    }
  ],
  "rules": []
}
