VDB
Sign up
MEDIUM6.5

GHSA-jw5g-f64p-6x78

Camaleon CMS vulnerable to Path Traversal through AWS S3 uploader implementation

Details

Camaleon CMS versions 2.4.5.0 through 2.9.1, prior to commit f54a77e, contain a path traversal vulnerability in the AWS S3 uploader implementation that allows authenticated users to read arbitrary files from the web server’s filesystem. The issue occurs in the download_private_file functionality when the application is configured to use the CamaleonCmsAwsUploader backend. Unlike the local uploader implementation, the AWS uploader does not validate file paths with valid_folder_path?, allowing directory traversal sequences to be supplied via the file parameter. As a result, any authenticated user, including low-privileged registered users, can access sensitive files such as /etc/passwd. This issue represents a bypass of the incomplete fix for CVE-2024-46987 and affects deployments using the AWS S3 storage backend.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/camaleon_cms
Introduced in: 2.4.5.0

No fixed version published yet for camaleon_cms (bundler). Pin to a known-safe version or switch to an alternative.

References