/

CVE-2026-100372

Severity:

HIGH RISK

(7.2)

Path Traversal (CWE-22) in ClipBucket Template Editor

CVE-2026-100372

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

ClipBucket's admin template editor contains a path traversal vulnerability that allows an authenticated administrator with template-management access to write files outside the intended layout directory. If executable PHP files can be reached, an attacker may overwrite them and achieve remote code execution as the web server user.

Affected context

The vulnerability occurs in ClipBucket v5 deployments using the administrative template editor before the affected behavior was corrected. It becomes risky when a user with manage_template_access permission can influence the editor's folder selection and the application does not constrain resolved paths to the intended layout directory.

Exploit preconditions

  • Attack surface: Administrative template editor
  • Required access: Authenticated account with manage_template_access permission
  • Trigger point: File-writing operations that process the editor's folder parameter
  • Why exploitation is possible: Directory traversal sequences can cause path resolution outside the permitted template directory, allowing writable PHP files to be replaced

Why this happens

The underlying bug is insufficient canonicalization and boundary validation of a user-influenced filesystem path. When the application uses the folder parameter to construct a destination without reliably resolving and verifying that the final path remains within the approved directory, traversal elements can escape the intended location. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly called path traversal.

Potential impact

  • An attacker may overwrite executable PHP files
  • The attacker could execute server-side code as the web server user
  • Application data and administrative functions may be compromised
  • The compromise could enable persistence, defacement, or further server-side access

General mitigation guidance

Mitigation generally focuses on enforcing filesystem boundaries and reducing the ability of administrative features to write executable content.

Common defensive patterns include:

  • Resolve and canonicalize paths before use, then verify they remain beneath a fixed permitted directory
  • Prefer server-side identifiers or allowlisted template names over user-controlled path components
  • Reject traversal and path-normalization ambiguity rather than attempting to filter individual sequences
  • Separate template storage from executable web content where practical
  • Restrict template-editing permissions to narrowly scoped administrative roles
  • Apply least-privilege filesystem permissions and prevent the application account from modifying unrelated PHP code
  • Record and review administrative file-write events

How teams detect issues like this

Detection approaches commonly include:

  • Static analysis for concatenation of request parameters with filesystem paths
  • Code review checks for missing canonicalization and containment validation
  • Tests using normalized, encoded, and platform-specific path variants to verify directory boundaries
  • Runtime monitoring for unusual writes to PHP files or locations outside approved template directories
  • Policy enforcement that limits web applications from writing executable files
  • Automated security review tools that flag path construction from HTTP parameters

Sources

SourceLink
github.comgithub.com/MacWarrior/clipbucket-v5
github.comgithub.com/MacWarrior/clipbucket-v5/blob/61cce55ab26ef88fb782dfde47b44c17c56978cd/upload/admin_area/template_editor.php#L44-L69
github.comgithub.com/MacWarrior/clipbucket-v5/commit/f31de49b2194482ffef7147aa1e9b1c8f0f04eb7
github.comgithub.com/MacWarrior/clipbucket-v5/releases/tag/5.5.3-%23197
hackmd.iohackmd.io/@leediay/S1AIRjzqfx
vulncheck.comvulncheck.com/advisories/clipbucket-v5-before-5.5.3-197-path-traversal-via-template-editor-php

Frequently asked

questions

It can be reached through the application's administrative interface, but exploitation generally requires network access to that interface and an authenticated account with the relevant template-management permission.

No. The described attack path depends on the manage_template_access permission or an equivalent administrative capability, along with the ability to use the template editor.

Enforce canonical path resolution and strict containment within an approved template directory, while preventing the feature from writing arbitrary executable files.

Use allowlisted resource identifiers, apply least-privilege permissions, review filesystem operations involving request data, and monitor administrative file changes.

Find out what's already
exploitable in your codebase.