Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. camaleon_cms
  4. ›
  5. CVE-2024-46986

CVE-2024-46986: Camaleon CMS affected by arbitrary file write to RCE (GHSL-2024-182)

September 18, 2024 (updated April 17, 2025)

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.

References

  • codeql.github.com/codeql-query-help/ruby/rb-path-injection
  • github.com/advisories/GHSA-wmjg-vqhv-q5p5
  • github.com/owen2345/camaleon-cms
  • github.com/owen2345/camaleon-cms/commit/b3b12b1e4a9e3fccaf5bb4330820fa7f8744e6bd
  • github.com/owen2345/camaleon-cms/security/advisories/GHSA-wmjg-vqhv-q5p5
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/camaleon_cms/CVE-2024-46986.yml
  • nvd.nist.gov/vuln/detail/CVE-2024-46986
  • owasp.org/www-community/attacks/Path_Traversal
  • securitylab.github.com/advisories/GHSL-2024-182_GHSL-2024-186_Camaleon_CMS
  • www.reddit.com/r/rails/comments/1exwtdm/camaleon_cms_281_has_been_released

Code Behaviors & Features

Detect and mitigate CVE-2024-46986 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.8.0 before 2.8.1

Fixed versions

  • 2.8.1

Solution

Upgrade to version 2.8.1 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

gem/camaleon_cms/CVE-2024-46986.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.