{"answers":{"affected":"2 open source packages ship an affected version, including camaleon_cms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-46986 exists.","fix":"Upgrade camaleon_cms to 2.8.1 or later.","what":"CVE-2024-46986 is a critical 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."},"fix_prompt":"Check this codebase for CVE-2024-46986 and fix it if it is affected.\n\nWhat it is: CVE-2024-46986 is a critical 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-46986 exists.\n\nAffected packages and fixed versions:\n- camaleon_cms (RubyGems): affected from 2.8.0; fixed in 2.8.1\n- camaleon_cms (RubyGems): affected from 2.8.0; fixed in 2.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-46986/ (Markdown: https://insights.sbomify.com/CVE-2024-46986/index.md)","id":"CVE-2024-46986","markdown":"https://insights.sbomify.com/CVE-2024-46986/index.md","name":"CVE-2024-46986","record":{"aliases":["GHSA-wmjg-vqhv-q5p5"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Camaleon CMS","requires_auth":"low_privilege","summary":"Authenticated attackers can write arbitrary files to the server, potentially leading to remote code execution in Camaleon CMS.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"camaleon_cms","vendor":"tuzitio"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2024-09-22","github_poc":1,"max_poc_stars":3,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-09-22T14:27:35Z","kind":"github_poc","ref":"https://github.com/vidura2/CVE-2024-46986","stars":3,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-46986.yaml","stars":null,"title":"Camaleon CMS \u003c 2.8.1 Arbitrary File Write to RCE"}],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary file write leading to RCE in Camaleon CMS","id":"CVE-2024-46986","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":2,"n_references":5,"next":{"headline":"Arbitrary path traversal in Camaleon CMS","id":"CVE-2024-46987"},"packages":[{"ecosystem":"RubyGems","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"camaleon_cms","purl":null,"source":"GHSA-wmjg-vqhv-q5p5"},{"ecosystem":"RubyGems","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"camaleon_cms","purl":"pkg:gem/camaleon_cms","source":"GHSA-wmjg-vqhv-q5p5"}],"prev":{"headline":"DataEase has an XXE vulnerability","id":"CVE-2024-46985"},"products":["camaleon-cms"],"published":"2024-09-18","related":[{"cvss_score":9.8,"headline":"Server-Side Template Injection in Camaleon CMS","id":"CVE-2023-30145","kev_date_added":null,"published":"2023-05-26"},{"cvss_score":8.8,"headline":"Camaleon CMS - Insufficient Session Expiration after Password Change","id":"CVE-2021-25970","kev_date_added":null,"published":"2021-10-20"},{"cvss_score":7.7,"headline":"Arbitrary path traversal in Camaleon CMS","id":"CVE-2024-46987","kev_date_added":null,"published":"2024-09-18"},{"cvss_score":6.1,"headline":"Camaleon CMS - Stored Cross-Site Scripting (XSS) in Comments","id":"CVE-2021-25969","kev_date_added":null,"published":"2021-10-20"},{"cvss_score":6.1,"headline":"Camaleon CMS vulnerable to Stored Cross-site Scripting","id":"CVE-2018-18260","kev_date_added":null,"published":"2018-10-15"},{"cvss_score":6,"headline":"Camaleon CMS AWS Uploader Authenticated Path Traversal Arbitrary File Read","id":"CVE-2026-1776","kev_date_added":null,"published":"2026-03-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-17","vendors":["owen2345"]},"summary":"Authenticated attackers can write arbitrary files to the server, potentially leading to remote code execution in Camaleon CMS.","url":"https://insights.sbomify.com/CVE-2024-46986/"}