CVE-2024-46986 Arbitrary file write leading to RCE in Camaleon CMS

Critical 10.0 Published Updated

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.

Weakness: CWE-22, CWE-74

Which versions are affected by CVE-2024-46986?

2 open source packages ship an affected version, including camaleon_cms. It affects 1 product.

PackageAffectedFixed in
camaleon_cms RubyGemsFrom 2.8.02.8.1
camaleon_cms RubyGemsFrom 2.8.02.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.

Sources

Also known as GHSA-wmjg-vqhv-q5p5.

Is CVE-2024-46986 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free