# CVE-2022-35944: October CMS Safe Mode bypass leads to authenticated RCE (Remote Code Execution)

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-02)
- Published: 2022-10-13T00:00:00.000Z
- Modified: 2026-06-17T04:52:34.560Z
- Also known as: GHSA-x4q7-m6fp-4v9v
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- octobercms october: >= 3.0.0, < 3.0.66; < 2.2.34; before 2.2.34; from 3.0.00 before 3.0.66
- october/system (Packagist): from 2.0.0 before 2.2.34; from 3.0.0 before 3.0.66

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/octobercms/october/security/advisories/GHSA-x4q7-m6fp-4v9v> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35944> (advisory)
- <https://github.com/octobercms/october> (package)

## Sources

- CVE List: [CVE-2022-35944](https://www.cve.org/CVERecord?id=CVE-2022-35944), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-x4q7-m6fp-4v9v](https://github.com/advisories/GHSA-x4q7-m6fp-4v9v), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-35944](https://nvd.nist.gov/vuln/detail/CVE-2022-35944), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-35944 · Whole record: https://cve.day/CVE-2022-35944.json · Rebuilt by cve.day 2026-11-25T22:58:15.674Z
