---
id: "CVE-2026-116009"
kind: "vulnerability"
aliases: ["CVE-2026-116009"]
title: "Camaleon CMS: media users can write ERB templates and execute code"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["camaleon-cms", "package", "rails", "ruby", "self-hosted"]
not_affected_if: ["admin-only-media", "patched-version"]
published_at: "2026-10-24T12:16:56+00:00"
first_seen_at: "2026-10-24T12:47:58+00:00"
updated_at: "2026-10-25T02:59:54+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116009", "first_seen_at": "2026-10-24T12:47:58+00:00"}]
---

# Camaleon CMS: media users can write ERB templates and execute code

Camaleon CMS before 2.9.3 has a path traversal in the media crop_url action that lets a user with only media permission write arbitrary files using ../ sequences in the name parameter. The write can place an ERB template in a theme's views directory, which runs when the page renders, giving the attacker code execution on the server.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed Camaleon CMS version in the Gemfile.lock or the `camaleon_cms` entry in the Gemfile.lock; versions below `2.9.3` are affected.
- Review which accounts hold the media permission and whether any role grants it without admin rights.

## Fix

- Upgrade Camaleon CMS to `2.9.3` or later.
- Until upgraded, restrict the media permission to trusted administrators only.

## Timeline

- 2026-10-24T12:47:58+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116009

## From the sources

Camaleon CMS before 2.9.3 contains a path traversal vulnerability that allows users with only the media permission to write arbitrary files by supplying ../ sequences in the name parameter. Attackers can send a base64 data: URI to the crop_url media action to write an ERB template into a theme's views directory, which executes when rendered.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
