Skip to main content
ExploitedIn CISA KEVFix available

CVE-2025-35939

Exploitation confirmed. First attested on 2025-06-02 by CISA-ADP, CISA KEV, GCVE · previdian.

  • Published2025-05-07
  • Fixed in5.7.5 · 4.15.3
  • WeaknessCWE-472

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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_[session_value]', where '[session_value]' 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.

Timeline

dates in UTC
  1. 2025-05-0723:15CVE publishedNVD
  2. 2025-06-02Added to the CISA KEV catalogCISA KEV
  3. 2025-06-02Listed as exploited by GCVEGCVE
  4. 2025-06-02Exploitation first reportedCISA KEV
  5. 2025-06-0603:55SSVC exploitation set to activeCISA-ADP

Versions per branch

NVD · OSV
Craftcms craft cms
BranchAffectedFixed in
5.x≥ 5.0.0, < 5.7.55.7.5
5.x≥ 5.0.0-alpha.1, < 5.7.55.7.5
4.15< 4.15.34.15.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As cisa-cg, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Craft CMSother versions: unknown
    Affected
    • < 5.7.5fixed in 5.7.5custom
    • < 4.15.3fixed in 4.15.3custom

    Not affected = 5.7.5 · = 4.15.3

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-05-28

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • craftcms/cmsTuxCare:Packagistfrom 3.9.15 · fixed in 3.9.15-p1+tuxcare

Vendor advisories

  • VA-25-147-01 CISA2 products fixed · 2 known affected

    Craft CMS stores user-provided content session files

    Craft CMS <5.7.5 · Craft CMS <4.15.3

Full record on NVD

Fix

  1. Update Craftcms craft cms to 5.7.5 · 4.15.3
  2. CISA’s required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.due 2025-06-23
  3. Vendor fix CISA VA-25-147-01 · 1 productFixed in 5.7.5.
  4. Vendor fix CISA VA-25-147-01 · 1 productFixed in 4.15.3.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

CISA Known Exploited Vulnerability

Date added
2025-06-02
Patch due date
2025-06-23
Ransomware use
Unknown
Required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Sources

  • CISA KEVKEV entry2025-06-02
  • ENISA EUVDexploitation2025-06-022025-06-02
  • GCVEexploitation2025-06-02
  • CISA-ADPSSVC decisionactive2025-06-06
  • CNACVSS 4.06.9known since 2026-10-23
  • CNACVSS 3.15.3known since 2026-10-23
  • NVDCVSS 3.15.3read 2026-10-23
  • CNAweakness (CWE)CWE-472known since 2026-10-23
  • FIRST EPSSEPSS score3.5 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2025-05-08

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2025-05-07
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-7vrx-9684-xrf2

Frequently asked questions

What is CVE-2025-35939?

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_[session_value]', where '[session_value]' 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.

Is CVE-2025-35939 actively exploited?

Yes. CVE-2025-35939 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning it has been confirmed as actively exploited in the wild. CISA requires federal agencies to patch by 2025-06-23.

What is the CVSS score for CVE-2025-35939?

CVE-2025-35939 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.

Running craftcms/cms? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record