{"id":"CVE-2024-46986","published":"2024-09-18T17:14:09Z","modified":"2025-04-17T18:07:02Z","title":"Arbitrary file write leading to RCE in Camaleon CMS","vendor":"owen2345","product":"camaleon-cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07105,"percentile":0.9499,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/owen2345/camaleon-cms/security/advisories/GHSA-wmjg-vqhv-q5p5","tags":["x_refsource_CONFIRM"]},{"url":"https://codeql.github.com/codeql-query-help/ruby/rb-path-injection","tags":["x_refsource_MISC"]},{"url":"https://owasp.org/www-community/attacks/Path_Traversal","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-182_GHSL-2024-186_Camaleon_CMS","tags":["x_refsource_MISC"]},{"url":"https://www.reddit.com/r/rails/comments/1exwtdm/camaleon_cms_281_has_been_released","tags":["x_refsource_MISC"]}],"priority":{"score":31.0,"factors":[{"name":"EPSS percentile","points":19.0},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-09-22","earliestUrl":"https://github.com/vidura2/CVE-2024-46986","repos":[{"name":"vidura2/CVE-2024-46986","url":"https://github.com/vidura2/CVE-2024-46986","stars":3,"created":"2024-09-22"}]},"nuclei":[{"id":"CVE-2024-46986","name":"Camaleon CMS < 2.8.1 Arbitrary File Write to RCE","severity":"critical","path":"http/cves/2024/CVE-2024-46986.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-46986.yaml"}],"first":{"date":"2024-09-22","source":"PoC-in-GitHub","url":"https://github.com/vidura2/CVE-2024-46986"},"provenance":"source"},"vendorSlug":"owen2345","affectedVersions":[{"vendor":"owen2345","product":"camaleon-cms","versions":["< 2.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-09-18T19:00:17.229195Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"camaleon_cms","vulnerableRanges":[">=2.8.0, <2.8.1"],"patched":["2.8.1"],"from":["GHSA-wmjg-vqhv-q5p5"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file write in the upload method of the MediaController in Camaleon CMS, a Ruby on Rails content management system from owen2345. An attacker who is logged in can use it to write files to any location the web server's filesystem permissions allow, which, if they can place a Ruby file in the Rails application's config/initializers/ directory, can lead to delayed remote code execution; the attacker needs only low-privilege authentication and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:17Z"},"euvd":{"id":"EUVD-2024-2890","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-owen2345-camaleon-cms-cve-2024-46986","children":[{"from":"CVE-2024-46986","to":"CVE-2026-116009","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/helpers/camaleon_cms/uploader_helper.rb"],"commits":["https://github.com/owen2345/camaleon-cms/commit/b3b12b1e4a9e3fccaf5bb4330820fa7f8744e6bd","https://github.com/owen2345/camaleon-cms/commit/430cce27ea63a397a7b7fa0260b4ec2128ea63fd"],"basis":"rarely changed file"}]}]}}