GHSA-7hxc-f267-h5q7: Path Traversal

Published Aug 6, 2026
·
Updated

The ensurePathIsContained function of the Local file system class is theoretically vulnerable to path traversal, although no exploitable scenario has been discovered.

When 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.

The 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.

Impact

The issue is not directly exploitable, but for hardening, a fix is recommended regardless.

Affected Software

2 affected componentsFixes available
composer/craftcms/cms>=4.0.0-RC1<4.18.2
4.18.2
composer/craftcms/cms>=5.0.0-RC1<5.10.6
5.10.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 4.18.2
  2. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 5.10.6

Event History

Aug 6, 2026
Advisory Published
via GitHub·09:36 PM
Data Sourced
via GitHub·09:36 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of GHSA-7hxc-f267-h5q7?

The severity of GHSA-7hxc-f267-h5q7 is rated as 12.

2

How do I fix GHSA-7hxc-f267-h5q7?

To fix GHSA-7hxc-f267-h5q7, ensure that your implementation of the `ensurePathIsContained` function properly restricts file access to prevent path traversal.

3

What are the potential risks of GHSA-7hxc-f267-h5q7?

The potential risks of GHSA-7hxc-f267-h5q7 include unauthorized file access due to path traversal vulnerabilities.

4

Is GHSA-7hxc-f267-h5q7 actively being exploited?

As of now, no exploitable scenario has been discovered for GHSA-7hxc-f267-h5q7.

5

Which software is affected by GHSA-7hxc-f267-h5q7?

GHSA-7hxc-f267-h5q7 affects the Composer Craft CMS software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203