/

CVE-2026-126372

Severity:

HIGH RISK

(8.8)

Unrestricted File Upload (CWE-434) in Vvveb CMS Editor

CVE-2026-126372

Deferred

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-434

Impact:

Potential Server-Side Code Execution

Severity:

HIGH RISK

(8.8)

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

Vvveb through version 1.0.8.6 has an incomplete restriction on writing server-side template files. An authenticated editor or site_admin may bypass save restrictions or use upload and rename actions to place PHP code in .tpl files, which could execute if the application processes those templates.

Affected context

The issue concerns Vvveb's editor and file-management paths for saving, uploading, or renaming files. It becomes risky when an authenticated editor or site_admin can write .tpl files and the application later processes those templates as executable PHP. The reported bypasses involve editor/code upload and rename actions, as well as executable-file checks in the save path.

Exploit preconditions

  • Attack surface: Vvveb editor and file upload, rename, or save functionality
  • Required access: An authenticated account with editor or site_admin privileges
  • Trigger point: A file operation that writes or renames a .tpl file, or a save operation that bypasses executable-file checks
  • Why exploitation is possible: Restrictions do not consistently prevent server-side template files containing PHP code from being written

Why this happens

The underlying issue is incomplete enforcement of file-type restrictions across related write paths. When upload, rename, or save operations do not apply consistent controls, a user may place a server-side template in a location where the application processes it. This maps to CWE-434: Unrestricted Upload of File with Dangerous Type.

Potential impact

  • PHP code in a template may execute when the application processes that template
  • An attacker could gain code execution within the application's server-side runtime
  • Application data or service availability could be affected
  • The compromised application could be used to access other resources permitted to its runtime account

General mitigation guidance

Defensive patterns focus on consistently limiting which files users can write and where those files can be stored.

  • Apply the same server-side file-type and destination checks to upload, rename, and save operations
  • Keep user-controlled files outside executable template paths, using non-executable storage by default
  • Use explicit allowlists for permitted file types and reject server-side template extensions where they are not required
  • Enforce authorization checks for file operations and apply least privilege to editor roles and the application runtime
  • Treat uploaded or edited content as untrusted, even when it comes from authenticated users

How teams detect issues like this

Review file-writing code paths to verify that upload, rename, and save actions share consistent authorization, extension, and destination controls. Static analysis and code review can flag gaps in executable-file checks, user-controlled paths, and writes to template directories. Runtime monitoring and policy enforcement can alert on unexpected .tpl files or changes to executable template locations; automated code review tools may help identify inconsistent validation paths.

Sources

SourceLink
github.comgithub.com/givanz/Vvveb/security/advisories/GHSA-7h6v-ww3f-24pp
vulncheck.comvulncheck.com/advisories/vvveb-through-1.0.8.6-template-upload-bypass-via-mediatrait-editor-code

Frequently asked

questions

The described paths require an authenticated editor or site_admin account with access to the relevant file operations.

The reported risk concerns writing or renaming .tpl files, or bypassing executable-file checks in the save path. Impact depends on whether the application processes the resulting template as PHP.

Enforce consistent server-side restrictions across every file-writing path, and store user-controlled files outside executable template locations.

Use explicit file-type allowlists, minimize who can modify templates, and review upload, rename, and save handlers together to ensure they enforce the same policies.

Find out what's already
exploitable in your codebase.