CVE-2024-46987
Ruby vulnerability analysis and mitigation

Overview

A path traversal vulnerability (CVE-2024-46987) was discovered in Camaleon CMS, a dynamic content management system based on Ruby on Rails. The vulnerability exists in the MediaController's downloadprivatefile method, which allows authenticated users to download arbitrary files from the web server depending on file permissions. The issue was disclosed on September 18, 2024, and affects versions from 2.8.0 up to (excluding) 2.8.2 (GitHub Advisory, NVD).

Technical details

The vulnerability exists in the downloadprivatefile method of MediaController, where user-supplied input for the file parameter is not properly validated. When files are uploaded locally, the fetch_file method of CamaleonCmsLocalUploader class processes the file parameter without adequate path normalization. The vulnerability has been assigned a CVSS v3.1 base score of 7.7 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N. The issue is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) (GitHub Advisory, NVD).

Impact

The vulnerability can lead to information disclosure, allowing authenticated users to access and download any file on the web server that the application has permission to read. This could potentially expose sensitive configuration files, system files, or other confidential information stored on the server (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 2.8.2 of Camaleon CMS. Users are strongly advised to upgrade to this version. For those unable to upgrade immediately, it is recommended to normalize file paths constructed from untrusted user input before using them and check that the resulting path is inside the targeted directory. Additionally, character sequences such as '..' should not be allowed in untrusted input used to build paths (GitHub Advisory).

Community reactions

The security community has emphasized the severity of this vulnerability, particularly given its high CVSS score and the potential for information disclosure. Security researchers have highlighted this as part of a series of critical security flaws affecting Camaleon CMS, urging users to upgrade immediately (Security Online).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
CVE-2025-61594MEDIUMN/A
  • RubyRuby
  • rubygem-json
NoYesDec 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management