CVE-2024-46986 Arbitrary file write leading to RCE in Camaleon CMS
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rubygems camaleon_cms(RubyGems) | = 2.8.0; >= 2.8.0, < 2.8.1 | 2.8.1 | Fixed |
| tuzitio camaleon cms | < 2.8.2 | 2.8.2 | Fixed |
| owen2345/camaleon-cms | = < 2.8.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems camaleon_cms(RubyGems) | >= 2.8.0, < 2.8.1 | 2.8.1 |
| rubygems camaleon_cms(RubyGems) | = 2.8.0 | No fix listed |
| owen2345/camaleon-cms | = < 2.8.2 | No fix listed |
| tuzitio camaleon cms | < 2.8.2 | 2.8.2 |
References
- https://github.com/owen2345/camaleon-cms/security/advisories/GHSA-wmjg-vqhv-q5p5 exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- https://codeql.github.com/codeql-query-help/ruby/rb-path-injection third-party-advisory
- github.com product
- github.com exploit
- https://owasp.org/www-community/attacks/Path_Traversal issue-tracking
- https://securitylab.github.com/advisories/GHSL-2024-182_GHSL-2024-186_Camaleon_CMS vendor-advisory
- https://www.reddit.com/r/rails/comments/1exwtdm/camaleon_cms_281_has_been_released patch
- github.com