CVE-2024-46987 — Vulnerability in camaleon_cms — CVE Details
Camaleon CMS vulnerable to arbitrary path traversal (GHSL-2024-183)
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 18.86% in 30 days. Address in your next planned sprint.
Does your project use an affected camaleon_cms version?
Paste your Gemfile.lock to check it for CVE-2024-46987 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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).
In the download_private_file method:
def download_private_file
cama_uploader.enable_private_mode!
file = cama_uploader.fetch_file("private/#{params[:file]}")
send_file file, disposition: 'inline'
end
The file parameter is passed to the fetch_file method of the CamaleonCmsLocalUploader class (when files are uploaded locally):
def fetch_file(file_name)
raise ActionController::RoutingError, 'File not found' unless file_exists?(file_name)
file_name
end
If the file exists it's passed back to the download_private_file method where the file is sent to the user via send_file.
Proof of concept An authenticated user can download the /etc/passwd file by visiting an URL such as:
https:///admin/media/download_private_file?file=../../../../../../etc/passwd Impact This issue may lead to Information Disclosure.
Remediation Normalize file paths constructed from untrusted user input before using them and check that the resulting path is inside the targeted directory. Additionally, do not allow character sequences such as .. in untrusted input that is used to build paths.
See also:
CodeQL: Uncontrolled data used in path expression OWASP: Path Traversal
Advisory Timeline
- First published September 18, 2024 (799 days ago).
- Last revised April 17, 2025 — 211 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install camaleon_cms -v 2.8.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| camaleon_cms RubyGems · Affected: 0.0.1, 0.0.2, 0.1.2, 0.1.3 (+108 more) | 2.8.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/owen2345/camaleon-cms/security/advisories/GHSA-cp65-5m9r-vc2cWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-46987ADVISORY
- https://github.com/owen2345/camaleon-cms/commit/071b1b09d6d61ab02a5960b1ccafd9d9c2155a3eWEB
- https://codeql.github.com/codeql-query-help/ruby/rb-path-injectionWEB
- https://github.com/owen2345/camaleon-cmsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/camaleon_cms/CVE-2024-46987.ymlWEB
- https://owasp.org/www-community/attacks/Path_TraversalWEB
- https://securitylab.github.com/advisories/GHSL-2024-182_GHSL-2024-186_Camaleon_CMSADVISORY
- https://www.reddit.com/r/rails/comments/1exwtdm/camaleon_cms_281_has_been_releasedWEB
Frequently Asked Questions
- What is CVE-2024-46987?
- Camaleon CMS vulnerable to arbitrary path traversal (GHSL-2024-183). This vulnerability has been assigned a severity rating of HIGH (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2024-46987?
- CVE-2024-46987 affects camaleon_cms. It has a 18.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-46987 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top 5% of EPSS-scored vulnerabilities — 97.9% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2025-2304CRITICAL
Camaleon CMS Vulnerable to Privilege Escalation through a Mass Assignment
- CVE-2023-30145CRITICAL
Server-Side Template Injection in Camaleon CMS
- CVE-2021-25970HIGH
Camaleon CMS Insufficient Session Expiration vulnerability
- GHSA-7x4w-cj9r-h4v9HIGH
Camaleon CMS vulnerable to remote code execution through code injection (GHSL-2024-185)
- CVE-2024-46986HIGH
Camaleon CMS affected by arbitrary file write to RCE (GHSL-2024-182)
- CVE-2018-18260MEDIUM
Camaleon CMS vulnerable to Stored Cross-site Scripting
- CVE-2024-48652MEDIUM
camaleon_cms affected by cross site scripting
- CVE-2026-1776MEDIUM
Camaleon CMS vulnerable to Path Traversal through AWS S3 uploader implementation