CVE-2024-46986 Arbitrary file write leading to RCE in Camaleon CMS
Authenticated attackers can write arbitrary files to the server, potentially leading to remote code execution in Camaleon CMS.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46986?
CVE-2024-46986 is a critical path traversal vulnerability in owen2345 camaleon-cms, published on 18 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-46986?
2 open source packages ship an affected version, including camaleon_cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
camaleon_cms RubyGems | From 2.8.0 | 2.8.1 |
camaleon_cms RubyGems | From 2.8.0 | 2.8.1 |
Products include Tuzitio Camaleon Cms.
How do I fix CVE-2024-46986?
Upgrade camaleon_cms to 2.8.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-46986 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-46986 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in owen2345 camaleon-cms
- CVE-2023-30145 Server-Side Template Injection in Camaleon CMS
- CVE-2021-25970 Camaleon CMS - Insufficient Session Expiration after Password Change
- CVE-2024-46987 Arbitrary path traversal in Camaleon CMS
- CVE-2021-25969 Camaleon CMS - Stored Cross-Site Scripting (XSS) in Comments
- CVE-2018-18260 Camaleon CMS vulnerable to Stored Cross-site Scripting
Sources
Also known as GHSA-wmjg-vqhv-q5p5.