CVE-2024-46986CWE-74

Arbitrary file write leading to RCE in Camaleon CMS

Critical · published September 18, 2024

CVSS v3.1
10.0
EPSS
41%
Percentile
98.7
In the wild
Unconfirmed
What it is

🚨 An arbitrary file write vulnerability in Camaleon CMS could let authenticated users drop files anywhere on the server! 🔥 Think of it like a sneaky delivery driver who can drop off packages not just at your front door but also in your garage, basement, or even your secret stash! Each unauthorized file could be a time bomb waiting to execute malicious code, especially if it lands in the wrong spot. An attacker could exploit this to write harmful Ruby files to the config/initializers directory, paving the way for delayed remote code execution. Imagine a burglar slowly setting up a heist from inside your home, waiting for just the right moment to strike! This could lead to a total compromise of your CMS and potentially your whole server.

Put simply

Think of it like a sneaky delivery driver who can drop off packages not just at your front door but also in your garage, basement, or even your secret stash! Each unauthorized file could be a time bomb waiting to execute malicious code, especially if it lands in the wrong spot. This vulnerability, present in Camaleon CMS versions prior to 2.8.2, allows authenticated users to upload arbitrary files through the MediaController, which the server might execute based on its permissions.

What to do

An attacker could exploit this to write harmful Ruby files to the config/initializers directory, paving the way for delayed remote code execution. Imagine a burglar slowly setting up a heist from inside your home, waiting for just the right moment to strike! This could lead to a total compromise of your CMS and potentially your whole server. Upgrade to Camaleon CMS version 2.8.2 immediately to patch this vulnerability. Ensure that your file upload methods include strict validation to prevent unauthorized file writes and regularly review user permissions. Don't delay – this is critical! You've got this! Follow these steps and you'll reinforce your defenses in no time! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.40956 · 98.7th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2024-09-18T17:14Z
EPSS history
Timeline
  • 18 SEP 17:14Z
    Arbitrary file write leading to RCE in Camaleon CMS
    cvelistv5