CVE-2025-21622·PHP vulnerability
ClipBucket V5 provides open source video hosting with PHP. During the user avatar upload workflow, a user can choose to upload and change their avatar at any time. During deletion, ClipBucket checks for the avatar_url as a filepath within the avatars subdirectory. If the URL path exists within the avatars directory, ClipBucket will delete it. There is no check for path traversal sequences in the provided user input (stored in the DB as avatar_url) therefore the final $file variable could be tainted with path traversal sequences. This leads to file deletion outside of the intended scope of the avatars folder. This vulnerability is fixed in 5.5.1 - 237.
- Severity
- high
- Software
- PHP
- Fixed in
- 5.5.1-237
- Published
- 2025-01-07
Affected versions
From: 5.3
Until: 5.5.1-237
Fixed in: 5.5.1-237
How to fix this CVE
ClipBucket V5 is vulnerable to arbitrary file deletion through path traversal in the avatar upload feature. Upgrade to ClipBucket version 5.5.1-237 or later, which adds input validation to prevent path traversal sequences from being used in file deletion operations. If you are running versions 5.3 through 5.5.1-236, you should prioritize this update to prevent unauthorized deletion of critical files outside the avatars directory.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /account/avatar_upload or POST /account/edit_avatar with avatar_url parameter containing path traversal sequences (e.g., avatar_url=../../etc/passwd or avatar_url=..%2F..%2Fetc%2Fpasswd), followed by avatar deletion requests that result in HTTP 200 responses and unexpected file deletions outside the /avatars directoryWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a WAF rule to reject any avatar-related requests (upload, update, delete) where the avatar_url parameter contains path traversal sequences: block if avatar_url matches regex pattern '(\.\.[\/\\]|%2e%2e[%2f%5c]|%252e%252e)' or similar obfuscationsHow to check if you are affected
- Check your ClipBucket version: log in to the admin panel and navigate to Settings > System Information to verify the installed version number
- Identify if the avatar upload feature is enabled: review your ClipBucket configuration file (typically config.php) for avatar upload settings
- Search web server logs for suspicious avatar deletion requests: grep -i 'avatar.*\.\.' /var/log/apache2/access.log or similar, looking for path traversal patterns (../) in avatar_url parameters
- Verify the fix: after upgrading to 5.5.1-237, confirm the version in the admin panel and review the avatar upload handler code to ensure path traversal validation is present
FAQ
What is CVE-2025-21622?
CVE-2025-21622 is a path traversal vulnerability in ClipBucket V5's avatar deletion feature that allows authenticated users to delete arbitrary files on the server by injecting directory traversal sequences (like ../) into the avatar filename stored in the database.
Is CVE-2025-21622 being actively exploited?
No, there are currently no known active exploits in the wild or reports of exploitation according to CISA KEV data, though public proof-of-concept code may be available.
What versions of ClipBucket are affected by CVE-2025-21622?
ClipBucket versions 5.3 through 5.5.1-236 are vulnerable; version 5.5.1-237 and later contain the security fix.
How do I check if my server is vulnerable to CVE-2025-21622?
Log into your ClipBucket admin panel, navigate to Settings > System Information, and verify your version number. If it is 5.5.1-236 or earlier, your installation is vulnerable.
Does Defensia detect CVE-2025-21622?
Yes — Defensia's CVE advisory scanner compares installed ClipBucket package versions against the NVD database. If ClipBucket is installed on a monitored server, CVE-2025-21622 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21622. Free for 1 server.
Get started free