high CVSS 7.5

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 php

Defensia 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 directory

WAF 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 obfuscations

How to check if you are affected

  1. Check your ClipBucket version: log in to the admin panel and navigate to Settings > System Information to verify the installed version number
  2. Identify if the avatar upload feature is enabled: review your ClipBucket configuration file (typically config.php) for avatar upload settings
  3. 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
  4. 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

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.

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