CVE-2025-35939: Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability

Published May 7, 2025
·
Updated

Craft CMS contains an external control of assumed-immutable web parameter vulnerability. This vulnerability could allow an unauthenticated client to introduce arbitrary values, such as PHP code, to a known local file location on the server. This vulnerability could be chained with CVE-2024-58136 as represented by CVE-2025-32432.

Other sources

Craft CMS stores arbitrary content provided by unauthenticated users in session files. This content could be accessed and executed, possibly using an independent vulnerability. Craft CMS redirects requests that require authentication to the login page and generates a session file on the server at '/var/lib/php/sessions'. Such session files are named 'sess[sessionvalue]', where '[sessionvalue]' is provided to the client in a 'Set-Cookie' response header. Craft CMS stores the return URL requested by the client without sanitizing parameters. Consequently, an unauthenticated client can introduce arbitrary values, such as PHP code, to a known local file location on the server. Craft CMS versions 5.7.5 and 4.15.3 have been released to address this issue.

NVD

Craft CMS stores arbitrary content provided by unauthenticated users in session files. This content could be accessed and executed, possibly using an independent vulnerability. Craft CMS redirects requests that require authentication to the login page and generates a session file on the server at /var/lib/php/sessions. Such session files are named sess[sessionvalue], where [sessionvalue] is provided to the client in a Set-Cookie response header. Craft CMS stores the return URL requested by the client without sanitizing parameters. Consequently, an unauthenticated client can introduce arbitrary values, such as PHP code, to a known local file location on the server. Craft CMS versions 5.7.5 and 4.15.3 have been released to address this issue.

GitHub

Affected Software

6 affected componentsFixes available
Craft Craft CMS>=4.15.3<=5.7.5
composer/craftcms/cms<4.15.3
4.15.3
composer/craftcms/cms>=5.0.0-alpha.1<5.7.5
5.7.5
Craft CMS Craft CMS
CraftCMS Craft CMS<4.15.3
CraftCMS Craft CMS>=5.0.0<5.7.5

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.15.3
  2. Upgrade

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

    Fixed in 5.7.5

Event History

May 7, 2025
CVE Published
via MITRE·10:41 PM
Data Sourced
via MITRE·10:41 PM
DescriptionSeverityWeakness
May 8, 2025
Advisory Published
via GitHub·12:31 AM
Data Sourced
via GitHub·12:31 AM
DescriptionSeverityWeaknessAffected Software
Jun 2, 2025
Known Exploited
via CISA·12:00 AM
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 CVE-2025-35939?

CVE-2025-35939 is considered a significant vulnerability due to the potential for arbitrary content execution by unauthenticated users.

2

How do I fix CVE-2025-35939?

To remediate CVE-2025-35939, upgrade Craft CMS to a version beyond 5.7.5 or 4.15.3.

3

Can CVE-2025-35939 be exploited remotely?

Yes, CVE-2025-35939 can be exploited remotely as it allows unauthenticated users to store arbitrary content.

4

What versions of Craft CMS are affected by CVE-2025-35939?

CVE-2025-35939 affects Craft CMS versions from 4.15.3 to 5.7.5.

5

What is the potential impact of CVE-2025-35939?

The potential impact of CVE-2025-35939 includes unauthorized access and execution of arbitrary code through session files.

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