{"id":"CVE-2026-50280","aliases":["CVE-2026-50280","GHSA-43cq-c2gq-pfpw"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS: Authorization bypass in `entries/move-to-section` via missing target-section save check","summary":"Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 and above prior to 5.9.21, the EntriesController::actionMoveToSection() endpoint gates the destination section only by viewEntries:$section->uid rather than requiring saveEntries permission (the source entry is separately checked via Entry::canMove()). As a result, a low-privileged authenticated control-panel user who can move an entry out of its current section can call moveEntryToSection() to rewrite the entry's sectionId and save it into a section where they have read access but no write access. This breaks the section-level authorization model, letting a user with limited permissions inject content into a protected section and interfere with editorial boundaries, approval workflows, and section-specific business logic. This issue has been fixed in version 5.9.21.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 and above prior to 5.9.21, the EntriesController::actionMoveToSection() endpoint gates the destination section only by viewEntries:$section->uid rather than requiring saveEntries permission (the source entry is separately checked via Entry::canMove()). As a result, a low-privileged authenticated control-panel user who can move an entry out of its current section can call moveEntryToSection() to rewrite the entry's sectionId and save it into a section where they have read access but no write access. This breaks the section-level authorization model, letting a user with limited permissions inject content into a protected section and interfere with editorial boundaries, approval workflows, and section-specific business logic. This issue has been fixed in version 5.9.21.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe `EntriesController::actionMoveToSection()` endpoint checks only whether the current user can view the destination section, but it does not require permission to save entries into that section. A low-privileged authenticated control-panel user who can move an entry out of its current section can therefore move that entry into a different section where they have read access but no write access.\n\n### Details\n\nThe vulnerable route is implemented in [EntriesController.php](/D:/files/projects/cms-5.9.19/cms-5.9.19/src/controllers/EntriesController.php):465:\n\nThe destination check is only `viewEntries:$section->uid` . The source-entry gate is `Entry::canMove()`, which verifies whether the user can move the existing entry based on the source section:\n\nThis closes the exploit chain:\n\n1. External source: authenticated CP request to `entries/move-to-section`.\n2. Missing authorization check: destination section requires only `viewEntries`, not `saveEntries`.\n3. Privileged sink: `moveEntryToSection()` rewrites `sectionId` and saves the entry into the unauthorized section.\n\nPreconditions derived from the code:\n\n1. The attacker is authenticated to the control panel.\n2. Entry `345` is movable by the attacker from its current section.\n3. The attacker can satisfy `viewEntries` on destination section `12`.\n4. The attacker does not have `saveEntries:DESTINATION_UID`, which is the missing check that makes the bypass possible.\n\nResult:\n\n1. The controller accepts the request because `viewEntries:$section->uid` passes.\n2. Each source entry passes `canMove()` based on source-section permissions.\n3. `moveEntryToSection()` updates the entry’s `sectionId` and saves it.\n4. The entry is now located in a section where the attacker did not have write permission.\n\n### Impact\n\nThis breaks the intended section-level authorization model. A user with limited content permissions can inject or relocate content into a protected section, interfering with editorial boundaries, approval workflows, section-specific business logic, and content ownership expectations.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Craft CMS es un sistema de gestión de contenido (CMS). En las versiones 5.0.0-RC1 y superiores anteriores a la 5.9.21, el endpoint EntriesController::actionMoveToSection() restringe la sección de destino solo por viewEntries:$section  ->  uid en lugar de requerir el permiso saveEntries (la entrada de origen se verifica por separado a través de Entry::canMove()). Como resultado, un usuario autenticado del panel de control con privilegios bajos que puede mover una entrada fuera de su sección actual puede llamar a moveEntryToSection() para reescribir el sectionId de la entrada y guardarla en una sección donde tiene acceso de lectura pero no de escritura. Esto rompe el modelo de autorización a nivel de sección, permitiendo que un usuario con permisos limitados inyecte contenido en una sección protegida e interfiera con los límites editoriales, los flujos de trabajo de aprobación y la lógica de negocio específica de la sección. Este problema ha sido solucionado en la versión 5.9.21.","source":"nvd"}],"published":"2026-07-01T23:43:49.095Z","modified":"2026-10-25T21:10:00.770Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"version":">= 5.0.0-RC1, < 5.9.21","status":"affected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.9.21"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-43cq-c2gq-pfpw","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/0a6b916f6367b0162b2eaf2366add67b45fa98ea","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50280","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-02T15:39:15.343Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-50280","url":"https://www.cve.org/CVERecord?id=CVE-2026-50280","licence":"CVE Terms of Use","modified":"2026-07-02T15:39:22.626Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-43cq-c2gq-pfpw","url":"https://github.com/advisories/GHSA-43cq-c2gq-pfpw","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:10.214Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-50280","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50280","licence":"Public domain","modified":"2026-10-25T21:10:00.770Z"}],"updatedAt":"2026-11-25T22:59:26.985Z","epss":{"score":0.00273,"percentile":0.20986,"date":"2026-12-01T12:00:22.000Z"}}