{"id":"CVE-2022-35944","published":"2022-10-13T00:00:00Z","modified":"2025-04-23T16:50:51Z","title":"October CMS Safe Mode bypass leads to authenticated RCE (Remote Code Execution)","vendor":"octobercms","product":"october","tier":"tail","description":{"text":"October is a self-hosted Content Management System (CMS) platform based on the Laravel PHP Framework. This vulnerability only affects installations that rely on the safe mode restriction, commonly used when providing public access to the admin panel. Assuming an attacker has access to the admin panel and permission to open the \"Editor\" section, they can bypass the Safe Mode (`cms.safe_mode`) restriction to introduce new PHP code in a CMS template using a specially crafted request. The issue has been patched in versions 2.2.34 and 3.0.66.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01051,"percentile":0.65094,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-x4q7-m6fp-4v9v","tags":[]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":13.02},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"octobercms","affectedVersions":[{"vendor":"octobercms","product":"october","versions":[">= 3.0.0, < 3.0.66","< 2.2.34"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:47:57.987369Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"october/system","vulnerableRanges":[">=2.0.0, <2.2.34",">=3.0.0, <3.0.66"],"patched":["2.2.34","3.0.66"],"from":["GHSA-x4q7-m6fp-4v9v"],"provenance":"source"}],"summary":{"text":"October CMS, a self-hosted Laravel-based content management platform, contains a flaw in its Safe Mode restriction (cms.safe_mode), which is commonly used on installations that expose the admin panel publicly. An attacker who already has admin panel access and permission to use the \"Editor\" section can craft a request that bypasses Safe Mode and injects new PHP code into a CMS template, requiring high attack complexity and privileges but no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:54:59Z"},"euvd":{"id":"EUVD-2022-7180","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41126","published":"2021-10-06","fixed":"2.1.12","kev":false},{"cve":"CVE-2022-21705","published":"2022-02-23","fixed":"2.1.27","kev":false},{"cve":"CVE-2022-24800","published":"2022-07-12","fixed":"2.2.15","kev":false,"link":{"from":"CVE-2022-24800","to":"CVE-2022-35944","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"2.2.15","toFixed":"2.2.34","daysApart":93}]}},{"cve":"CVE-2022-35944","published":"2022-10-13","fixed":"3.0.66","kev":false},{"cve":"CVE-2023-44381","published":"2023-12-01","fixed":"3.4.15","kev":false,"link":{"from":"CVE-2022-35944","to":"CVE-2023-44381","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"3.0.66","toFixed":"3.4.15","daysApart":414}]}},{"cve":"CVE-2023-44382","published":"2023-12-01","fixed":"3.4.15","kev":false,"link":{"from":"CVE-2022-35944","to":"CVE-2023-44382","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"3.0.66","toFixed":"3.4.15","daysApart":414}]}},{"cve":"CVE-2023-44383","published":"2023-11-29","fixed":"3.5.2","kev":false}],"package":"Packagist:october/system"}}