{"id":"CVE-2022-21705","published":"2022-02-23T19:00:10Z","modified":"2025-04-23T19:01:04Z","title":"Authenticated remote code execution in octobercms","vendor":"octobercms","product":"october","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0865,"percentile":0.95236,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-79jw-2f46-wv22","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/octobercms/library/commit/c393c5ce9ca2c5acc3ed6c9bb0dab5ffd61965fe","tags":["x_refsource_MISC"]}],"priority":{"score":29.1,"factors":[{"name":"EPSS percentile","points":19.05},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"exploitSources":{"nuclei":[{"id":"CVE-2022-21705","name":"October CMS - Remote Code Execution","severity":"high","path":"http/cves/2022/CVE-2022-21705.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-21705.yaml"}],"provenance":"source"},"vendorSlug":"octobercms","affectedVersions":[{"vendor":"octobercms","product":"october","versions":["< 1.0.474",">= 1.1.0, < 1.1.10",">= 2.0.0, < 2.1.27"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:55:38.542429Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"october/system","vulnerableRanges":["<1.0.474",">=1.1.0, <1.1.10",">=2.0.0, <2.1.27"],"patched":["1.0.474","1.1.10","2.1.27"],"from":["GHSA-79jw-2f46-wv22"],"provenance":"source"}],"summary":{"text":"The flaw is in the October CMS platform (octobercms), a Laravel-based self-hosted CMS, where user input is not properly sanitized before rendering. An attacker who already holds an authenticated backend account with permissions to create, modify and delete website pages can bypass the safe mode setting (cms.safe_mode / cms.enableSafeMode) and execute arbitrary code, but only on admin panels that rely on safe mode and restricted permissions and only if the attacker can first reach the backend area.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:23Z"},"euvd":{"id":"EUVD-2022-0885","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32649","published":"2022-01-14","fixed":"1.1.6","kev":false,"link":{"from":"CVE-2021-32649","to":"CVE-2022-21705","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"1.0.473","toFixed":"1.0.474","daysApart":40}]}},{"cve":"CVE-2021-32650","published":"2022-01-14","fixed":"1.1.6","kev":false},{"cve":"CVE-2022-23655","published":"2022-02-23","fixed":"1.1.11","kev":false,"link":{"from":"CVE-2022-21705","to":"CVE-2022-23655","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"1.1.10","toFixed":"1.1.11","daysApart":0},{"kind":"similar","provenance":"machine","score":0.34,"basis":"same product + description similarity"}]}},{"cve":"CVE-2021-41126","published":"2021-10-06","fixed":"2.1.12","kev":false,"link":{"from":"CVE-2021-41126","to":"CVE-2022-21705","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"2.1.12","toFixed":"2.1.27","daysApart":140}]}},{"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-21705","to":"CVE-2022-24800","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"2.1.27","toFixed":"2.2.15","daysApart":139}]}},{"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}],"package":"Packagist:october/system"}}