/

CVE-2026-126804

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in AVideo ADs Plugin Deletion

CVE-2026-126804

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Deletion and Potential Site Disruption

Severity:

HIGH RISK

(8.1)

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

A path traversal vulnerability in AVideo's ADs plugin can let an authenticated user with custom ads delete files outside the intended image location. If the vulnerable deletion endpoint receives an unvalidated is_regular_user value, it may target another user's ads or other files, potentially disrupting the site.

Affected context

The issue is reported in WWBN AVideo versions 12.4 through 29.7.1, in the ADs plugin's deleteImage.json.php endpoint. It becomes relevant when an authenticated user with custom ads can reach the image-deletion functionality and influence the is_regular_user parameter. The extent of impact depends on the files accessible to the application process.

Exploit preconditions

  • Attack surface: The ADs plugin image-deletion endpoint.
  • Required access: An authenticated account with the ability to manage custom ads or invoke the relevant deletion function.
  • Trigger point: Processing a deletion request that uses the is_regular_user parameter to determine a file path.
  • Why exploitation is possible: The parameter is not adequately validated or constrained to the intended user and directory, allowing a path to resolve outside the expected location.

Why this happens

The endpoint uses user-influenced data in file path construction without reliably restricting the resulting path to an approved directory. This is a path traversal weakness, CWE-22: Improper Limitation of a Pathname to a Restricted Directory. The insecure pattern is trusting a supplied identifier or path component when selecting a file to delete, rather than validating it and enforcing directory boundaries.

Potential impact

  • An attacker may delete other users' ad files.
  • Files outside the intended ads directory could be deleted if accessible to the application process.
  • Deletion of important application files could disrupt the site or make it unavailable.
  • Removing configuration files could expose setup or installation functionality, depending on the application's behavior.

General mitigation guidance

Defensive approaches focus on keeping user-controlled values from determining filesystem paths. Prefer mapping validated identifiers to server-controlled filenames and directories, and enforce that resolved paths remain within an explicitly allowed storage location before performing deletion. Apply strict authorization checks for the target resource, minimize the application process's filesystem privileges, and avoid storing sensitive application files in locations writable by the web process.

How teams detect issues like this

  • Review file-deletion code for paths assembled from request parameters, user identifiers, or other untrusted values.
  • Use static analysis to flag filesystem operations whose paths include unvalidated input.
  • Check that authorization is performed for the specific file being deleted and that canonicalized paths are confined to an approved directory.
  • Apply policy checks that restrict deletion operations to designated storage areas, and monitor for unexpected deletion attempts or access to sensitive paths.

Sources

SourceLink
github.comgithub.com/WWBN/AVideo/blob/v29.7.1/plugin/ADs/ADs.php#L194-L219
github.comgithub.com/WWBN/AVideo/blob/v29.7.1/plugin/ADs/deleteImage.json.php#L53-L63
github.comgithub.com/WWBN/AVideo/commit/c2b99663d6442e2182a0f3ab95ea6731a193b301
github.comgithub.com/WWBN/AVideo/security/advisories/GHSA-58h3-9722-fgpm
vulncheck.comvulncheck.com/advisories/wwbn-avideo-12.4-through-29.7.1-path-traversal-file-deletion-via-deleteimage-json-php

Frequently asked

questions

The described attack requires authentication and access to the relevant custom-ad functionality. The actual scope depends on the deployment's permissions and filesystem access.

The ADs plugin's image-deletion endpoint uses the is_regular_user parameter in determining which file to delete. Insufficient validation can allow the target path to escape the intended directory.

Use server-controlled file mappings, validate resource ownership, and verify that the resolved deletion target remains within an approved directory.

Treat request parameters as untrusted, minimize filesystem privileges, and use code review and automated checks to identify file operations influenced by user input.

Find out what's already
exploitable in your codebase.