Skip to content
Heist/ feed
Back to feed
Medium

Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained

Type: advisorySources: OSV

Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-RC1 before 4.18.2 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The order of operations validates the path before normalization, so normalization could invalidate prior validation assumptions (a desanitization-style issue) and potentially resolve to files outside the intended volume directory. The vendor notes the issue is not directly exploitable and no exploitable scenario has been discovered; the fix is recommended for hardening.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-72783
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:35 UTC · Revision 1

Source evidence

Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained

core-osv · Original source

Published 11 Aug 2026, 12:17 UTC

Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-RC1 before 4.18.2 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The order of operations validates the path before normalization, so normalization could invalidate prior validation assumptions (a desanitization-style issue) and potentially resolve to files outside the intended volume directory. The vendor notes the issue is not directly exploitable and no exploitable scenario has been discovered; the fix is recommended for hardening.

osv:CVE-2026-72783
Complete source record
{
  "id": "72327e73bc24d764d9ddb055877dbc1c586899e4104ee8b8c6576baf4a2083ca",
  "url": "https://osv.dev/vulnerability/CVE-2026-72783",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained",
    "summary": "Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-RC1 before 4.18.2 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The order of operations validates the path before normalization, so normalization could invalidate prior validation assumptions (a desanitization-style issue) and potentially resolve to files outside the intended volume directory. The vendor notes the issue is not directly exploitable and no exploitable scenario has been discovered; the fix is recommended for hardening.",
    "evidence": "osv:CVE-2026-72783",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-72783",
      "aliases": [
        "CVE-2026-72783",
        "GHSA-7hxc-f267-h5q7"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/craftcms/cms",
              "type": "GIT",
              "events": [
                {
                  "introduced": "04755d93f86d07cc183db47db8a0eee106892e30"
                },
                {
                  "fixed": "5c055703a13ba3a52bf013d7ba6c0223d6f62ef8"
                },
                {
                  "introduced": "daac7c1da2f701f2e9ddee1da1457ce61660b581"
                },
                {
                  "fixed": "c7ea105e1d2cf043e76e7847d84e5732071a26b4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.0.0-RC1"
                      },
                      {
                        "fixed": "5.10.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "4.0.0-RC1"
                      },
                      {
                        "fixed": "4.18.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72783.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.915297570Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72783.json",
        "https://github.com/craftcms/cms/security/advisories/GHSA-7hxc-f267-h5q7",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-72783",
        "https://www.vulncheck.com/advisories/craft-cms-rc1-before-path-traversal-via-ensurepathiscontained"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72783.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-72783",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490592,
  "published_at": "2026-08-11T12:17:17.772+00:00"
}