Custom Query Shortcode <= 0.4.0 - Authenticated (Contributor+) Path Traversal via lens Parameter

2025-08-24 21:19
Muhammad Yudha - DJ

Strategic Overview

Status
Patched in 0.5.0
Affected PluginCustom Query Shortcode
Affected Version<= 0.4.0
CVSS6.5Medium
CVECVE-2025-8562
View all Custom Query Shortcode vulnerabilities

Vulnerability Overview

The Custom Query Shortcode plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 0.4.0 via the 'lens' parameter. This makes it possible for authenticated attackers, with Contributor-level access and above, to read the contents of files on the server, which can contain sensitive information.

Technical Analysis

REMEDIATION: Update to version 0.5.0, or a newer patched version --- IDENTIFIER: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C