Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2023-40035

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

August 21, 2023 (updated July 16, 2025)

Bypassing the validatePath function can lead to potential Remote Code Execution (Post-authentication, ALLOW_ADMIN_CHANGES=true)

References

  • github.com/advisories/GHSA-44wr-rmwq-3phw
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5
  • github.com/craftcms/cms/releases/tag/3.8.15
  • github.com/craftcms/cms/releases/tag/4.4.15
  • github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw
  • nvd.nist.gov/vuln/detail/CVE-2023-40035

Code Behaviors & Features

Detect and mitigate CVE-2023-40035 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.8.15, all versions starting from 4.0.0-RC1 before 4.4.15

Fixed versions

  • 4.4.15
  • 3.8.15

Solution

Upgrade to versions 3.8.15, 4.4.15 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

packagist/craftcms/cms/CVE-2023-40035.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:31 +0000.