# CVE-2026-72783: Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 5% of CVEs (2026-11-30)
- Published: 2026-08-06T21:36:11.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-7hxc-f267-h5q7
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- craftcms cms: from 5.0.0-RC1 before 5.10.6; from 4.0.0-RC1 before 4.18.2 (not affected: 5.10.6; 4.18.2)
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.10.6; from 4.0.0-RC1 before 4.18.2

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-7hxc-f267-h5q7> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/craft-cms-rc1-before-path-traversal-via-ensurepathiscontained> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-72783> (advisory)
- <https://github.com/craftcms/cms/commit/a8425b6c707335e42c35ee2aaf03af50ea4a494d> (web)
- <https://github.com/craftcms/cms/commit/bd6b9c175b4892e042e8a03760c39b0e94c4c7d6> (web)
- <https://github.com/craftcms/cms> (package)
- <https://github.com/craftcms/cms/releases/tag/4.18.2> (web)
- <https://github.com/craftcms/cms/releases/tag/5.10.6> (web)

## Sources

- CVE List: [CVE-2026-72783](https://www.cve.org/CVERecord?id=CVE-2026-72783), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-7hxc-f267-h5q7](https://github.com/advisories/GHSA-7hxc-f267-h5q7), CC-BY-4.0, modified 2026-09-01
- NVD: [CVE-2026-72783](https://nvd.nist.gov/vuln/detail/CVE-2026-72783), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-72783 · Whole record: https://cve.day/CVE-2026-72783.json · Rebuilt by cve.day 2026-11-25T22:59:32.251Z
