CVE-2024-46987 Arbitrary path traversal in Camaleon CMS

High 7.7 Published Updated

Authenticated attackers can exploit a path traversal flaw in Camaleon CMS to download arbitrary files from the server, leading to information disclosure.

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-46987?

CVE-2024-46987 is a high-severity 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. A path traversal vulnerability accessible via MediaController's download_private_file method allows authenticated users to download any file on the web server Camaleon CMS is running on (depending on the file permissions). This issue may lead to Information Disclosure. 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-200

Which versions are affected by CVE-2024-46987?

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

PackageAffectedFixed in
camaleon_cms RubyGemsAll versions2.8.1
camaleon_cms RubyGemsAll versions2.8.1

Products include Tuzitio Camaleon Cms.

How do I fix CVE-2024-46987?

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-46987 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-46987 exists.

Public exploit code: 1 Metasploit module, 1 Exploit-DB entry and 10 proofs of concept on GitHub.

Sources

Also known as GHSA-cp65-5m9r-vc2c.

Is CVE-2024-46987 in your software?

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

Check your SBOMs for free