Skip to content
Heist/ feed
Back to feed
Medium

Craft CMS vulnerable to Server-Side Request Forgery (SSRF) via GraphQL Asset Upload Mutation

Type: advisorySources: OSV

Craft is a platform for creating digital experiences. In versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16, the Craft CMS GraphQL `save__Asset` mutation is vulnerable to Server-Side Request Forgery (SSRF). This vulnerability arises because the `_file` input, specifically its `url` parameter, allows the server to fetch content from arbitrary remote locations without proper validation. Attackers can exploit this by providing internal IP addresses or cloud metadata endpoints as the `url`, forcing the server to make requests to these restricted services. The fetched content is then saved as an asset, which can subsequently be accessed and exfiltrated, leading to potential data exposure and infrastructure compromise. This exploitation requires specific GraphQL permissions for asset management within the targeted volume. Users should update to the patched 5.8.21 and 4.16.17 releases to mitigate the issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-68437
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:06 UTC · Revision 1

Source evidence

Craft CMS vulnerable to Server-Side Request Forgery (SSRF) via GraphQL Asset Upload Mutation

core-osv · Original source

Published 5 Jan 2026, 21:52 UTC

Craft is a platform for creating digital experiences. In versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16, the Craft CMS GraphQL `save__Asset` mutation is vulnerable to Server-Side Request Forgery (SSRF). This vulnerability arises because the `_file` input, specifically its `url` parameter, allows the server to fetch content from arbitrary remote locations without proper validation. Attackers can exploit this by providing internal IP addresses or cloud metadata endpoints as the `url`, forcing the server to make requests to these restricted services. The fetched content is then saved as an asset, which can subsequently be accessed and exfiltrated, leading to potential data exposure and infrastructure compromise. This exploitation requires specific GraphQL permissions for asset management within the targeted volume. Users should update to the patched 5.8.21 and 4.16.17 releases to mitigate the issue.

osv:CVE-2025-68437
Complete source record
{
  "id": "2619f0a5a5024491803c30ba2e2fda9d5ff1dd975b4ec75e543684380281d0c9",
  "url": "https://osv.dev/vulnerability/CVE-2025-68437",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Craft CMS vulnerable to Server-Side Request Forgery (SSRF) via GraphQL Asset Upload Mutation",
    "summary": "Craft is a platform for creating digital experiences. In versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16, the Craft CMS GraphQL `save__Asset` mutation is vulnerable to Server-Side Request Forgery (SSRF). This vulnerability arises because the `_file` input, specifically its `url` parameter, allows the server to fetch content from arbitrary remote locations without proper validation. Attackers can exploit this by providing internal IP addresses or cloud metadata endpoints as the `url`, forcing the server to make requests to these restricted services. The fetched content is then saved as an asset, which can subsequently be accessed and exfiltrated, leading to potential data exposure and infrastructure compromise. This exploitation requires specific GraphQL permissions for asset management within the targeted volume. Users should update to the patched 5.8.21 and 4.16.17 releases to mitigate the issue.",
    "evidence": "osv:CVE-2025-68437",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-68437",
      "aliases": [
        "CVE-2025-68437",
        "GHSA-x27p-wfqw-hfcc"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/craftcms/cms",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c6671af5af9e45f57ca9ab50d4b30b07282819d3"
                },
                {
                  "fixed": "b5f17cd3246cf10034a914464964757b0b84bcd3"
                },
                {
                  "introduced": "856f45f2766b1a1df5db437b5cd3fe5cce896b5b"
                },
                {
                  "fixed": "8582f04f8346c6cf285a18d9704c4a2d9371e9bf"
                },
                {
                  "introduced": "f6a8fb685d44e387435825e3a96809eeda4973a6"
                },
                {
                  "fixed": "013db636fdb38f3ce5657fd196b6d952f98ebc52"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.5.0"
                      },
                      {
                        "fixed": "4.16.17"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.1"
                      },
                      {
                        "fixed": "5.8.21"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.0-NA"
                      },
                      {
                        "last_affected": "5.0.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.0-rc1"
                      },
                      {
                        "last_affected": "5.0.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "013db636fdb38f3ce5657fd196b6d952f98ebc52"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.0.0-NA",
            "5.0.0-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68437.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.718732515Z",
      "provider": "osv",
      "references": [
        "https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5821---2025-12-04",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68437.json",
        "https://github.com/craftcms/cms/security/advisories/GHSA-x27p-wfqw-hfcc",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-68437",
        "https://github.com/craftcms/cms/commit/013db636fdb38f3ce5657fd196b6d952f98ebc52"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68437.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-68437",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501082,
  "published_at": "2026-01-05T21:52:29.436+00:00"
}