Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1525+ Articles
152+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-54414: FileRise Path Traversal Enables Arbitrary File Write and Admin Takeover
CVE-2026-54414: FileRise Path Traversal Enables Arbitrary File Write and Admin Takeover

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-54414

CVE-2026-54414: FileRise Path Traversal Enables Arbitrary File Write and Admin Takeover

A critical path traversal vulnerability in FileRise before 3.16.0 allows unauthenticated attackers to write arbitrary files and completely compromise administrator accounts via the shared-folder upload endpoint.

Dylan H.

Security Team

June 19, 2026
5 min read

Affected Products

  • FileRise before 3.16.0

Critical Path Traversal in FileRise Leads to Full Admin Compromise

FileRise, a self-hosted file management and sharing platform, is affected by a critical path traversal vulnerability tracked as CVE-2026-54414, published to the National Vulnerability Database (NVD) on June 19, 2026. The flaw carries a CVSS score of 9.8 (Critical) and affects all versions prior to 3.16.0.

The vulnerability resides in the shared-folder upload endpoint at /api/folder/uploadToSharedFolder.php. Despite validation logic using PHP's basename() function combined with a REGEX_FILE_NAME pattern in the FolderController, attackers can craft malicious filenames that bypass these controls and traverse directory boundaries — enabling arbitrary file writes anywhere on the underlying filesystem accessible to the web server process.


Vulnerability Details

DetailValue
CVE IDCVE-2026-54414
CVSS Score9.8 (Critical)
Attack VectorNetwork — unauthenticated
Affected ProductFileRise before 3.16.0
Vulnerable Endpoint/api/folder/uploadToSharedFolder.php
Root CauseInsufficient path validation — basename() + regex bypass
ImpactArbitrary file write, administrator account takeover
PublishedJune 19, 2026
Patch AvailableFileRise 3.16.0
Exploited in WildNot yet confirmed

How the Vulnerability Works

Bypassing basename() Validation

PHP's basename() is commonly used to strip directory components from a filename, leaving only the final segment. However, this function has well-documented edge cases on both Linux and Windows systems involving null bytes, special path separators, and Unicode normalization that can allow the sanitized value to still contain directory traversal sequences when combined with string concatenation or platform-specific file APIs.

REGEX_FILE_NAME Bypass

The REGEX_FILE_NAME pattern applied in FolderController represents an attempt to restrict filenames to safe character sets. However, overly permissive regex patterns — particularly those that do not anchor at both start and end of the string or that fail to account for URL-encoded characters — can be bypassed by submitting carefully crafted inputs that satisfy the regex match while still containing traversal elements after PHP processes the string.

File Write to Arbitrary Locations

Once the path validation is bypassed, the application writes the attacker-controlled content to a location outside the intended shared folder. Common exploitation paths include:

  • Writing a PHP web shell to a web-accessible directory (/var/www/html/, the application root, or a plugin directory)
  • Overwriting configuration files such as config.php to modify database credentials or authentication settings
  • Writing SSH authorized_keys if the web server user has write access to home directories

Administrator Account Takeover

The advisory explicitly identifies administrator account takeover as a direct exploitation outcome. This is likely achieved by overwriting application configuration files that control authentication — for example, overwriting a user credentials file or configuration that stores admin password hashes, enabling the attacker to replace them with a known value.

POST /api/folder/uploadToSharedFolder.php HTTP/1.1
Host: target.filerise.local
Content-Type: multipart/form-data; boundary=----Boundary
 
------Boundary
Content-Disposition: form-data; name="file"; filename="../../webroot/shell.php"
Content-Type: application/octet-stream
 
<?php system($_GET['cmd']); ?>
------Boundary--

Impact Assessment

Impact AreaDescription
SeverityCVSS 9.8 Critical — highest severity tier
Authentication requiredNone — unauthenticated exploitation
User interactionNone required
Filesystem accessArbitrary write to any path accessible by the web server process
Account compromiseDirect administrator account takeover documented
Code executionPossible via web shell deployment
Deployment exposureAny internet-facing or network-accessible FileRise installation before 3.16.0

Recommendations

Immediate Actions

  1. Upgrade to FileRise 3.16.0 or later — the fix is available now; this should be treated as an emergency patch given the unauthenticated, critical-severity nature of the flaw
  2. Restrict access to the upload endpoint — if immediate patching is not possible, use firewall rules or web server ACLs to restrict access to /api/folder/uploadToSharedFolder.php to trusted IP ranges only
  3. Audit recently uploaded files — review file system changes in the document root and application directories for unexpected PHP files or modified configuration files

Detection Guidance

  • Web server logs: Look for POST requests to /api/folder/uploadToSharedFolder.php with filenames containing ../, ..%2F, ..%5C, null bytes, or other traversal patterns
  • File system monitoring: Alert on new .php files written outside expected upload directories
  • Integrity checks: Compare application files against a known-good baseline to detect configuration tampering

Configuration Hardening

  • Run the web server process under a dedicated, least-privilege user account with write access restricted to only the upload directory
  • Enforce open_basedir in php.ini to restrict PHP's file access to a defined directory tree
  • Consider deploying a web application firewall (WAF) rule to block traversal patterns in file upload filenames as a defense-in-depth measure

Key Takeaways

  1. CVE-2026-54414 is a CVSS 9.8 critical flaw — unauthenticated path traversal enabling arbitrary file write and admin account takeover in FileRise before 3.16.0
  2. basename() is not a sufficient path sanitization control — its behavior varies across platforms and PHP versions and can be bypassed in combination with other operations
  3. The shared-folder upload endpoint lacked robust directory confinement — file writes were not restricted to the intended upload directory by absolute path enforcement
  4. Patch to 3.16.0 immediately — there is no viable workaround that fully mitigates the risk other than the vendor-provided fix
  5. Web-facing file management platforms are high-value targets — they inherently combine file write capability with broad filesystem access, making path traversal flaws particularly dangerous in this class of software

Sources

  • CVE-2026-54414 — NVD
#Vulnerability#CVE#Path Traversal#File Upload#RCE#Critical#NVD

Related Articles

CVE-2026-7515: BetterDocs Pro WordPress Plugin — Unauthenticated Local File Inclusion

A critical Local File Inclusion vulnerability in the BetterDocs Pro WordPress plugin (up to v3.8.0) allows unauthenticated attackers to include and execute arbitrary PHP files via the doc_style parameter, enabling full server compromise.

6 min read

CVE-2026-47928: Adobe ColdFusion Critical RCE — CVSS 9.6

Adobe ColdFusion 2023.19 and 2025.8 are affected by a critical improper input validation flaw enabling unauthenticated remote code execution with scope change.

2 min read

CVE-2026-7037: Unauthenticated OS Command Injection in Totolink A8000RU

A critical CVSS 9.8 OS command injection vulnerability in the Totolink A8000RU router allows unauthenticated remote attackers to execute arbitrary...

5 min read
Back to all Security Alerts