ZeroHour

CVE-2024-46986

PoC niche

Authenticated arbitrary file write in Camaleon CMS enables delayed RCE

CVSS 3.1
9.9 critical
EPSS
41%p99
Published
()
Modified
AI analysis

An authenticated arbitrary file write vulnerability exists in Camaleon CMS (versions before 2.8.2): the upload method of the MediaController does not properly constrain where uploaded files are written, so a user with low-privilege access can write files to any location on the web server, limited only by filesystem permissions. An attacker can abuse this by planting a Ruby file in the Rails config/initializers/ directory of the application, achieving delayed remote code execution when the application next loads, with critical impact (CVSS 9.9, high confidentiality/integrity/availability and scope change). Any deployment of Tuzitio's Camaleon CMS running a version prior to 2.8.2 is affected. No confirmed in-the-wild exploitation has been reported and the flaw is not in CISA KEV, but a public advisory with a proof-of-concept reference exists and EPSS assigns a 41% probability of exploitation within 30 days (99th percentile), so defenders should treat patching as urgent.

What to do: Upgrade to Camaleon CMS 2.8.2 or later, since there are no known workarounds. Restrict MediaController/upload access to trusted accounts and inspect the Rails config/initializers/ directory (and other writable paths) for unexpected or recently modified Ruby files that could indicate prior exploitation. Given the elevated EPSS score (41%, 99th percentile), prioritize patching immediately.

Affected
tuzitio camaleon cmsall versions prior to 2.8.2 (< 2.8.2)
Estimated exposure
nichelikely hundreds to low thousands of deployments (niche open-source Rails CMS; no public install or scan counts available) — No public active-install or internet-exposure telemetry exists for Camaleon CMS; given its limited adoption relative to mainstream CMS platforms and its self-hosted Rails deployment pattern, the affected installed base is plausibly in the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Camaleon CMS is a dynamic and advanced content management system based on Ruby on Rails. An arbitrary file write vulnerability accessible via the upload method of the MediaController allows authenticated users to write arbitrary files to any location on the web server Camaleon CMS is running on (depending on the permissions of the underlying filesystem). E.g. This can lead to a delayed remote code execution in case an attacker is able to write a Ruby file into the config/initializers/ subfolder of the Ruby on Rails application. This issue has been addressed in release version 2.8.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Vendors
tuzitio
Products
camaleon cms
Weakness
CWE-74, CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.