{"id":"CVE-2022-21705","aliases":["CVE-2022-21705","GHSA-79jw-2f46-wv22"],"related":[],"kind":"vulnerability","state":"published","title":"Authenticated remote code execution in octobercms","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn 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.\n\n- This issue only affects admin panels that rely on safe mode and restricted permissions.\n- To exploit this vulnerability, an attacker must first have access to the backend area.\n\n### Patches\n\nThe issue has been patched in Build 474 (v1.0.474) and v1.1.10.\n\n### Workarounds\n\nApply https://github.com/octobercms/library/commit/c393c5ce9ca2c5acc3ed6c9bb0dab5ffd61965fe to your installation manually if unable to upgrade to Build 474 or v1.1.10.\n\n### References\n\nCredits to:\n- David Miller\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n- Email us at [hello@octobercms.com](mailto:hello@octobercms.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Octobercms es una plataforma CMS auto-alojada basada en el framework PHP Laravel. En las versiones afectadas, la entrada del usuario no se desinfectaba correctamente antes de la renderización. Un usuario autenticado con permisos para crear, modificar y eliminar páginas del sitio web puede explotar esta vulnerabilidad para saltarse `cms.safe_mode` / `cms.enableSafeMode` con el fin de ejecutar código arbitrario. Este problema sólo afecta a los paneles de administración que dependen del modo seguro y de los permisos restringidos. Para explotar esta vulnerabilidad, un atacante debe tener primero acceso al área del backend. El problema ha sido parcheado en la Build 474 (v1.0.474) y en la v1.1.10. Los usuarios que no puedan actualizar deberán aplicar https://github.com/octobercms/library/commit/c393c5ce9ca2c5acc3ed6c9bb0dab5ffd61965fe a su instalación manualmente","source":"nvd"}],"published":"2022-02-23T19:00:10.000Z","modified":"2026-06-17T04:26:48.307Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","score":8.5,"rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 1.0.474","status":"affected"},{"version":">= 1.1.0, < 1.1.10","status":"affected"},{"version":">= 2.0.0, < 2.1.27","status":"affected"}],"vendor":"octobercms","product":"october","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.474"}],"ecosystem":"Packagist","package":"october/system","purl":"pkg:composer/october/system","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.1.0","status":"affected","fixed":"1.1.10"}],"ecosystem":"Packagist","package":"october/system","purl":"pkg:composer/october/system","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.27"}],"ecosystem":"Packagist","package":"october/system","purl":"pkg:composer/october/system","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.474"},{"status":"affected","introduced":"1.1.0","fixed":"1.1.10"},{"status":"affected","introduced":"2.0.0","fixed":"2.1.27"}],"vendor":"octobercms","product":"october","cpe":"cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-79jw-2f46-wv22","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/octobercms/library/commit/c393c5ce9ca2c5acc3ed6c9bb0dab5ffd61965fe","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21705","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/octobercms/october","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:55:38.542Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21705","url":"https://www.cve.org/CVERecord?id=CVE-2022-21705","licence":"CVE Terms of Use","modified":"2025-04-23T19:01:04.083Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-79jw-2f46-wv22","url":"https://github.com/advisories/GHSA-79jw-2f46-wv22","licence":"CC-BY-4.0","modified":"2024-02-19T05:32:05.967Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21705","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21705","licence":"Public domain","modified":"2026-06-17T04:26:48.307Z"}],"updatedAt":"2026-11-25T22:58:09.801Z","epss":{"score":0.0865,"percentile":0.95224,"date":"2026-12-01T12:00:22.000Z"}}