{"id":"CVE-2026-72783","aliases":["CVE-2026-72783","GHSA-7hxc-f267-h5q7"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The `ensurePathIsContained` function of the `Local` file system class is theoretically vulnerable to path traversal, although no exploitable scenario has been discovered.\n\nWhen a file is read, an `Asset` object uses the `getFileStream` method of the `Volume` where the asset file is stored, which in turn uses the `getFileStream` method of the file system class used by that `Volume`. For the `Local` file system, this function returns a stream to a file on the local disk after verifying and creating the correct file path.\n\nThe file path is constructed by first validating the path and then adding a prefix to the validated and normalized path. The prefix is the path to the local directory that houses the particular volume. The order of operations matters here: first, a validation step, afterward a normalization step, and finally the construction of the resulting file path. This opens the possibility of a desanitization-style vulnerability, where the normalization invalidates the assumptions made by the validation or sanitization that preceded it.\n\n## Impact\n\nThe issue is not directly exploitable, but for hardening, a fix is recommended regardless.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Versiones de Craft CMS mayor o igual que 5.0.0-RC1 anteriores a 5.10.6 y mayor o igual que 4.0.0-RC1 anteriores a 4.18.2 contienen una debilidad teórica de salto de ruta en la función ensurePathIsContained de la clase de sistema de archivos Local. El orden de las operaciones valida la ruta antes de la normalización, por lo que la normalización podría invalidar suposiciones de validación previas (un problema de estilo de desanitización) y potencialmente resolver a archivos fuera del directorio de volumen previsto. El proveedor señala que el problema no es directamente explotable y no se ha descubierto ningún escenario explotable; la corrección se recomienda para el endurecimiento.","source":"nvd"}],"published":"2026-08-06T21:36:11.000Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N","rating":"LOW"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"5.0.0-RC1","fixed":"5.10.6","status":"affected"},{"type":"semver","version":"5.10.6","status":"unaffected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0-RC1","fixed":"4.18.2","status":"affected"},{"type":"semver","version":"4.18.2","status":"unaffected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.10.6"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-RC1","status":"affected","fixed":"4.18.2"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-7hxc-f267-h5q7","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-rc1-before-path-traversal-via-ensurepathiscontained","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72783","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/commit/a8425b6c707335e42c35ee2aaf03af50ea4a494d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/commit/bd6b9c175b4892e042e8a03760c39b0e94c4c7d6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/releases/tag/4.18.2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.10.6","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-14T19:51:45.646Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72783","url":"https://www.cve.org/CVERecord?id=CVE-2026-72783","licence":"CVE Terms of Use","modified":"2026-10-08T15:24:28.767Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7hxc-f267-h5q7","url":"https://github.com/advisories/GHSA-7hxc-f267-h5q7","licence":"CC-BY-4.0","modified":"2026-09-01T21:30:06.420Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72783","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72783","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:32.251Z","epss":{"score":0.00197,"percentile":0.0537,"date":"2026-11-30T12:00:22.000Z"}}